projects
/
grml-live.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
7dd680b
)
Display usage information if any unknown cmdline option is used
author
Michael Prokop
<mika@grml.org>
Fri, 27 Jul 2012 12:43:07 +0000
(14:43 +0200)
committer
Michael Prokop
<mika@grml.org>
Fri, 27 Jul 2012 12:43:07 +0000
(14:43 +0200)
This is more user friendly than just displaying an error message
grml-live
patch
|
blob
|
history
diff --git
a/grml-live
b/grml-live
index
45b93e6
..
3964cbd
100755
(executable)
--- a/
grml-live
+++ b/
grml-live
@@
-333,7
+333,7
@@
while getopts "a:C:c:d:D:e:g:i:I:o:r:s:t:U:v:AbBFhnNqQuVz" opt; do
U) CHOWN_USER="$OPTARG" ;;
V) VERBOSE="-v" ;;
z) SQUASHFS_ZLIB=1 ;;
- ?) echo "invalid option -$OPTARG" >&2; bailout 1 ;;
+ ?) echo "invalid option -$OPTARG" >&2;
usage;
bailout 1 ;;
esac
done
shift $(($OPTIND - 1)) # set ARGV to the first not parsed commandline parameter