mirror of
https://github.com/tanrax/bash-folders.git
synced 2025-10-10 18:25:50 +02:00
Changed default argparse option to break, rather than exit; to support required argument(s) without an associated flag
This commit is contained in:
@@ -60,11 +60,7 @@ main() {
|
||||
case "${1}" in
|
||||
-h | --help ) usage; return 0;;
|
||||
-- ) shift; break;;
|
||||
* )
|
||||
printf '%s\n' "Unknown option: '${1}'" >&2
|
||||
usage
|
||||
return 1
|
||||
;;
|
||||
* ) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
Reference in New Issue
Block a user