Skip to content

Instantly share code, notes, and snippets.

@cirosantilli
Created November 2, 2017 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cirosantilli/2a803442add75e0f1e164cde183999d3 to your computer and use it in GitHub Desktop.
Save cirosantilli/2a803442add75e0f1e164cde183999d3 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
j=-1
while getopts j: OPT >/dev/null 2>&1; do
case "$OPT" in
'j')
j="$OPTARG"
;;
esac
done
echo $j
./run -e 1 -j 2
-1
./run -e -j 2
2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment