mirror of
https://bitbucket.org/mfeemster/fractorium.git
synced 2025-01-21 05:00:06 -05:00
better options
This commit is contained in:
parent
c11b2b4fc2
commit
fe6a949e03
@ -10,10 +10,9 @@ Options:
|
||||
|
||||
-h --help
|
||||
|
||||
-b --binary
|
||||
-nb --nobinary
|
||||
-s --source
|
||||
-ns --nosource
|
||||
--binary-only
|
||||
--source-only
|
||||
--source-and-binary
|
||||
--signed
|
||||
--unsigned"
|
||||
|
||||
@ -36,12 +35,19 @@ OPT_SIGNED=1
|
||||
|
||||
while [ $# -gt 0 ]; do
|
||||
case "$1" in
|
||||
-b|--binary) OPT_BUILD_BINARY=1;;
|
||||
-nb|--nobinary) OPT_BUILD_BINARY=0;;
|
||||
-s|--source) OPT_BUILD_SOURCE=1;;
|
||||
-ns|--nosource) OPT_BUILD_SOURCE=0;;
|
||||
--signed) OPT_SIGNED=1;;
|
||||
--unsigned) OPT_SIGNED=0;;
|
||||
--binary-only) OPT_BUILD_SOURCE=0
|
||||
OPT_BUILD_BINARY=1
|
||||
;;
|
||||
--source-only) OPT_BUILD_SOURCE=1
|
||||
OPT_BUILD_BINARY=0
|
||||
;;
|
||||
--source-and-binary) OPT_BUILD_SOURCE=1
|
||||
OPT_BUILD_BINARY=1
|
||||
;;
|
||||
--signed) OPT_SIGNED=1
|
||||
;;
|
||||
--unsigned) OPT_SIGNED=0
|
||||
;;
|
||||
-h|--help) echo "$USAGE"
|
||||
exit 0;;
|
||||
esac
|
||||
|
Loading…
Reference in New Issue
Block a user