Created
November 2, 2017 17:23
-
-
Save cirosantilli/2a803442add75e0f1e164cde183999d3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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