|
1 | | ---- minimal-raw.m4 2016-11-04 19:06:36.816634721 +0100 |
2 | | -+++ minimal.m4 2016-11-04 19:10:23.043297242 +0100 |
| 1 | +--- minimal-raw.m4 2017-12-06 23:51:13.985545630 +0100 |
| 2 | ++++ minimal.m4 2017-12-06 23:54:30.169992192 +0100 |
3 | 3 | @@ -3,16 +3,22 @@ |
4 | 4 | # m4_ignore( |
5 | 5 | echo "This is just a script template, not the script (yet) - pass it to 'argbash' to fix this." >&2 |
6 | | - exit 11 #)Created by argbash-init v@VERSION@ |
7 | | --# ARG_OPTIONAL_SINGLE([option], , [<option's help message goes here>]) |
8 | | --# ARG_OPTIONAL_BOOLEAN([print], , [<print's help message goes here>]) |
9 | | --# ARG_POSITIONAL_SINGLE([positional-arg], [<positional-arg's help message goes here>], ) |
| 6 | + exit 11 #)Created by argbash-init v2.5.1 |
| 7 | +-# ARG_OPTIONAL_SINGLE([option]) |
| 8 | +-# ARG_OPTIONAL_BOOLEAN([print]) |
| 9 | +-# ARG_POSITIONAL_SINGLE([positional-arg]) |
10 | 10 | -# ARG_HELP([<The general help message of my script>]) |
11 | 11 | +# ARG_OPTIONAL_SINGLE([option], o, [A option with short and long flags and default], [boo]) |
12 | 12 | +# ARG_OPTIONAL_BOOLEAN([print], , [A boolean option with long flag (and implicit default: off)]) |
|
18 | 18 |
|
19 | 19 | # [ <-- needed because of Argbash |
20 | 20 |
|
21 | | --echo "Value of --option: $_arg_option" |
22 | | --echo "print is $_arg_print" |
23 | | --echo "Value of positional-arg: $_arg_positional_arg" |
| 21 | +-printf 'Value of --%s: %s\n' 'option' "$_arg_option" |
| 22 | +-printf "'%s' is %s\n" 'print' "$_arg_print" |
| 23 | +-printf "Value of '%s': %s\n" 'positional-arg' "$_arg_positional_arg" |
24 | 24 | +if [ "$_arg_print" = on ] |
25 | 25 | +then |
26 | 26 | + echo "Positional arg value: '$_arg_positional_arg'" |
|
0 commit comments