summaryrefslogtreecommitdiff
path: root/lbu.in
diff options
context:
space:
mode:
Diffstat (limited to 'lbu.in')
-rw-r--r--lbu.in8
1 files changed, 7 insertions, 1 deletions
diff --git a/lbu.in b/lbu.in
index bff12a2..224f06b 100644
--- a/lbu.in
+++ b/lbu.in
@@ -380,11 +380,14 @@ usage_list() {
usage: $PROGRAM list|ls
__EOF__
- exit 1
+ exit $1
}
cmd_list() {
cmd_migrate_include_exclude
+ if [ "$1" = "-h" ]; then
+ usage_list 0
+ fi
_gen_filelist
}
@@ -776,6 +779,9 @@ while getopts "adehlM:np:qrv" opt ; do
;;
v) VERBOSE="$VERBOSE -v"
;;
+ '?')
+ usage_$SUBCMD "1" >&2
+ ;;
esac
done
shift $(expr $OPTIND - 1)