Allow settings to be specified with short '-s' option

This commit is contained in:
Jordan 2012-02-16 08:54:53 -05:00
parent 7b2388bb56
commit 102318497d
2 changed files with 7 additions and 2 deletions

View file

@ -45,6 +45,7 @@ settings="settings.json"
a='';
for arg in $*; do
if [ "$a" = "--settings" ]; then settings=$arg; fi
if [ "$a" = "-s" ]; then settings=$arg; fi
a=$arg
done
#Does a $settings exist? if no copy the template