|
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,16 +3,22 @@ |
| 1 | +--- minimal-raw.m4 2020-08-01 00:01:13.050519113 +0200 |
| 2 | ++++ minimal.m4 2020-08-01 00:01:05.053955492 +0200 |
| 3 | +@@ -3,20 +3,26 @@ |
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 | 6 | exit 11 #)Created by argbash-init v@VERSION@ |
7 | 7 | -# ARG_OPTIONAL_SINGLE([option]) |
8 | 8 | -# ARG_OPTIONAL_BOOLEAN([print]) |
9 | 9 | -# ARG_POSITIONAL_SINGLE([positional-arg]) |
10 | | --# ARG_DEFAULTS_POS |
11 | | --# ARG_HELP([<The general help message of my script>]) |
12 | 10 | +# ARG_OPTIONAL_SINGLE([option], o, [A option with short and long flags and default], [boo]) |
13 | 11 | +# ARG_OPTIONAL_BOOLEAN([print], , [A boolean option with long flag (and implicit default: off)]) |
14 | 12 | +# ARG_POSITIONAL_SINGLE([positional-arg], [Positional arg description], ) |
15 | | -+# ARG_DEFAULTS_POS |
| 13 | + # ARG_DEFAULTS_POS |
| 14 | +-# ARG_HELP([<The general help message of my script>]) |
16 | 15 | +# ARG_HELP([This is a minimal demo of Argbash potential]) |
17 | 16 | +# ARG_VERSION([echo $0 v0.1]) |
18 | 17 | +# ARGBASH_SET_INDENT([ ]) |
19 | 18 | # ARGBASH_GO |
20 | 19 |
|
21 | 20 | # [ <-- needed because of Argbash |
22 | 21 |
|
| 22 | + # vvv PLACE YOUR CODE HERE vvv |
| 23 | + # For example: |
23 | 24 | -printf 'Value of --%s: %s\n' 'option' "$_arg_option" |
24 | 25 | -printf "'%s' is %s\\n" 'print' "$_arg_print" |
25 | 26 | -printf "Value of '%s': %s\\n" 'positional-arg' "$_arg_positional_arg" |
|
31 | 32 | + echo "Not telling anything, print not requested" |
32 | 33 | +fi |
33 | 34 |
|
34 | | - # ] <-- needed because of Argbash |
| 35 | + # ^^^ TERMINATE YOUR CODE BEFORE THE BOTTOM ARGBASH MARKER ^^^ |
| 36 | + |
0 commit comments