Skip to content
Snippets Groups Projects
Commit 8379b61a authored by Simon McVittie's avatar Simon McVittie
Browse files

pressure-vessel-wrap: Make argument parsing a bit more scalable

parent 4782aff9
No related branches found
No related tags found
No related merge requests found
......@@ -157,10 +157,19 @@ usage () {
exit "$code"
}
getopt_temp="$(getopt -o '' --long \
'freedesktop-app-id:,help,home:,interactive,ld-library-path:,ld-preload:,path:,runtime:,steam-app-id:,verbose,xterm' \
-n "$me" -- "$@")"
getopt_temp="help"
getopt_temp="${getopt_temp},freedesktop-app-id:"
getopt_temp="${getopt_temp},home:"
getopt_temp="${getopt_temp},interactive"
getopt_temp="${getopt_temp},ld-library-path:"
getopt_temp="${getopt_temp},ld-preload:"
getopt_temp="${getopt_temp},path:"
getopt_temp="${getopt_temp},runtime:"
getopt_temp="${getopt_temp},steam-app-id:"
getopt_temp="${getopt_temp},verbose"
getopt_temp="${getopt_temp},xterm"
getopt_temp="$(getopt -o '' --long "$getopt_temp" -n "$me" -- "$@")"
eval set -- "$getopt_temp"
unset getopt_temp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment