diff options
author | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-20 12:45:15 +0100 |
---|---|---|
committer | Dieter Plaetinck <dieter@plaetinck.be> | 2008-12-20 12:45:15 +0100 |
commit | 440e64fc28c4bb22782bc9eb2842c773707ab49a (patch) | |
tree | 8cadb534446423c0ad72f8a34c6b8ab87df0b513 /src/aif.sh | |
parent | 7e52204f8bb45e45fbeb9020fda0b7b86a28094f (diff) |
enhanced arg parsing + automatic procedure can read configs now
Diffstat (limited to 'src/aif.sh')
-rwxr-xr-x | src/aif.sh | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -275,7 +275,7 @@ procedure= # in that case -p needs to be the first option, but that's doable imho # an alternative would be to provide an argumentstring for the profile. eg aif -p profile -a "-a a -b b -c c" -var_OPTS_STRING=":i:dlp:" # you can override this variable in your procedure. +var_OPTS_STRING="" # you can override this variable in your procedure. # Processes args that were not already matched by the basic rules. @@ -320,7 +320,7 @@ load_module core load_procedure "$module" "$procedure" -while getopts $var_OPTS_STRING OPTION +while getopts ":i:dlp:$var_OPTS_STRING" OPTION do case $OPTION in i) |