Ticket #79 (closed defect: fixed)
Inconsistent function calls to print_help
| Reported by: | blee | Owned by: | blee |
|---|---|---|---|
| Priority: | major | Milestone: | confman-1.9.3 |
| Component: | confman | Version: | 1.9.2b |
| Keywords: | Cc: |
Description
The calls to print_help:
blee@lancer.b1c1l1 ~/src/confman/trunk $ grep print_help confman.in
print_help 1
print_help 1
print_help 1
print_help 1
h) shift ; print_help "$@" ; conf_cleanExit 0 ;;
help ) print_help "$@" ; conf_cleanExit 0 ;;
don't quite line up with what it expects as arguments:
case $1 in
return $2
This also breaks 'confman help' calls that specify more than one argument:
blee@civic.b1c1l1 ~ $ confman help recipe list
confman manages configuration files
Usage:
confman recipe [ get | list ]
confman recipe [ create | edit | print | remove | set ] recipe_name
The recipe command provides an interface to manage confman recipes.
create Create a recipe with the given name
edit Edit a recipe with the given name
get Print the host's recipe
list List all recipes
print Print the given recipe
remove Delete a recipe with the given name
set Set the host's recipe to the given name
Recipe
confman[44711]: blee: /usr/local/share/confman/confmandoc.sh: line 508: return: list: numeric argument required
Change History
comment:5 Changed 2 years ago by blee
- Status changed from closed to reopened
- Resolution fixed deleted
Note: See
TracTickets for help on using
tickets.

(In [443]) Fix multiple calls to print_help that were intended to call print_usage.
See #79