mirror of
https://github.com/tanrax/bash-folders.git
synced 2025-10-10 10:15: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:
@@ -92,11 +92,7 @@ main() {
|
||||
-l | --low ) settings['low']="${2}"; shift;;
|
||||
-H | --high ) settings['high']="${2}"; shift;;
|
||||
-- ) shift; break;;
|
||||
* )
|
||||
printf '%s\n' "Unknown option: '${1}'" >&2
|
||||
usage
|
||||
return 1
|
||||
;;
|
||||
* ) break;;
|
||||
esac
|
||||
shift
|
||||
done
|
||||
|
Reference in New Issue
Block a user