Skip to content

Commit c590279

Browse files
committed
Finalized 1.3.0 release
1 parent e35c170 commit c590279

File tree

9 files changed

+71
-67
lines changed

9 files changed

+71
-67
lines changed

ChangeLog

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
1-
1.2.2 (???)
1+
1.3.0 (2016-07-23)
22
------------------
33

44
New features:
55

6-
* Expanded documentation --- expanded info about related projects.
6+
* Support for infinitely many (and leftover) arguments.
7+
* Partial POSIX shell compatibility.
78

89
Bugfixes:
910

1011
* Fixed definitions in the parsing part of the script.
12+
* Expanded documentation --- expanded info about related projects.
1113

1214
1.2.1 (2016-07-10)
1315
------------------

bin/argbash.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
VERSION=1.2.1
3+
VERSION=1.3.0
44
# DEFINE_SCRIPT_DIR()
55
# ARG_POSITIONAL_SINGLE([input],[The input template file])
66
# ARG_OPTIONAL_SINGLE([output],[o],[Name of the output file (pass '-' for stdout)],[-])
@@ -12,9 +12,10 @@ VERSION=1.2.1
1212

1313
# ARGBASH_GO()
1414
# needed because of Argbash --> m4_ignore([
15-
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
15+
### START OF CODE GENERATED BY ARGBASH v1.3.0 one line above ###
1616
# Argbash is a bash code generator used to get arguments parsing right.
1717
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
18+
1819
# THE DEFAULTS INITIALIZATION --- POSITIONALS
1920
# THE DEFAULTS INITIALIZATION --- OPTIONALS
2021
_ARG_OUTPUT="-"
@@ -26,14 +27,14 @@ _ARG_DEBUG=
2627
print_help ()
2728
{
2829
echo "Argbash is an argument parser generator for Bash."
29-
echo "Usage: $0 [-o|--output <arg>] [--(no-)standalone] [-I|--search] [--debug <arg>] [-v|--version] [-h|--help] <input>"
30-
echo -e "\t: The input template file"
31-
echo -e "\t-o,--output: Name of the output file (pass '-' for stdout)default: '"-"'"
32-
echo -e "\t--standalone,--no-standalone: Whether the parsing code is in a standalone file. (off by default)"
33-
echo -e "\t-I,--search: Directories to search for the wrapped scripts (directory of the template will be added to the end of the list) (default array: (".") )"
34-
echo -e "\t--debug: (developer option) Tell autom4te to trace a macrono default"
35-
echo -e "\t-v,--version: Prints version"
36-
echo -e "\t-h,--help: Prints help"
30+
printf "Usage: $0 [-o|--output <arg>] [--(no-)standalone] [-I|--search] [--debug <arg>] [-v|--version] [-h|--help] <input>\n"
31+
printf "\t: The input template file\n"
32+
printf "\t-o,--output: Name of the output file (pass '-' for stdout) (default: '"-"')\n"
33+
printf "\t--standalone,--no-standalone: Whether the parsing code is in a standalone file. (off by default)\n"
34+
printf "\t-I,--search: Directories to search for the wrapped scripts (directory of the template will be added to the end of the list) (default array: (".") )\n"
35+
printf "\t--debug: (developer option) Tell autom4te to trace a macro (no default)\n"
36+
printf "\t-v,--version: Prints version\n"
37+
printf "\t-h,--help: Prints help\n"
3738
}
3839

3940
# THE PARSING ITSELF

doc/index.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,8 @@ Limitations
103103
#. The square brackets in your script should match (i.e. every opening square bracket ``[`` should be followed at some point by a closing square bracket ``]``).
104104
More precisely, the number of closing square brackets ``]`` must not exceed the number of opening ``[``.
105105
This limitation does apply to files that are processed by ``argbash.sh`` --- you are fine if you have the argument parsing code in a separate file and you don't use the ``INCLUDE_PARSING_CODE``.
106+
#. The generated code generally contains bashisms as it --- relies heavily on ``bash`` arrays to process any kind of positional arguments and multi-valued optional arguments.
107+
That said, if you stick with optional arguments only, a POSIX shell s.a. ``dash`` will be able to process the ``Argbash``-generated parsing code.
106108

107109
Index
108110
-----

resources/examples/minimal.sh

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,31 @@
11
#!/bin/bash
22

3-
# _ARG_POSITIONAL_SINGLE([positional-arg],[Positional arg description])
3+
# ARG_POSITIONAL_SINGLE([positional-arg],[Positional arg description])
44
# ARG_OPTIONAL_SINGLE([option],[o],[A option with short and long flags and default],[b])
55
# ARG_OPTIONAL_BOOLEAN([print],[],[A boolean option with long flag (and implicit default: off)],[])
66
# ARG_VERSION([echo $0 v0.1])
77
# ARG_HELP([This is a minimal demo of Argbash potential])
88
# ARGBASH_GO()
99
# needed because of Argbash --> m4_ignore([
10-
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
10+
### START OF CODE GENERATED BY ARGBASH v1.3.0 one line above ###
1111
# Argbash is a bash code generator used to get arguments parsing right.
1212
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
13+
1314
# THE DEFAULTS INITIALIZATION --- POSITIONALS
1415
# THE DEFAULTS INITIALIZATION --- OPTIONALS
1516
_ARG_OPTION="b"
1617
_ARG_PRINT=off
1718

1819
# THE PRINT HELP FUNCION
19-
function print_help
20+
print_help ()
2021
{
2122
echo "This is a minimal demo of Argbash potential"
22-
echo "Usage: $0 [--option <arg>] [--(no-)print] [--version] [--help] <positional-arg>"
23-
echo -e "\t<positional-arg>: Positional arg description"
24-
echo -e "\t-o,--option: A option with short and long flags and default (default: '"b"')"
25-
echo -e "\t--print,--no-print: A boolean option with long flag (and implicit default: off) (default: 'off')"
26-
echo -e "\t-v,--version: Prints version"
27-
echo -e "\t-h,--help: Prints help"
23+
printf "Usage: $0 [-o|--option <arg>] [--(no-)print] [-v|--version] [-h|--help] <positional-arg>\n"
24+
printf "\t: Positional arg description\n"
25+
printf "\t-o,--option: A option with short and long flags and default (default: '"b"')\n"
26+
printf "\t--print,--no-print: A boolean option with long flag (and implicit default: off) (off by default)\n"
27+
printf "\t-v,--version: Prints version\n"
28+
printf "\t-h,--help: Prints help\n"
2829
}
2930

3031
# THE PARSING ITSELF
@@ -61,7 +62,7 @@ done
6162
POSITIONAL_NAMES=('_ARG_POSITIONAL_ARG' )
6263
test ${#POSITIONALS[@]} -lt 1 && { ( echo "FATAL ERROR: Not enough positional arguments --- we require exactly 1, but got only ${#POSITIONALS[@]}."; print_help ) >&2; exit 1; }
6364
test ${#POSITIONALS[@]} -gt 1 && { ( echo "FATAL ERROR: There were spurious positional arguments --- we expect exactly 1, but got ${#POSITIONALS[@]} (the last one was: '${POSITIONALS[@]: -1}')."; print_help ) >&2; exit 1; }
64-
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
65+
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
6566
do
6667
eval "${POSITIONAL_NAMES[$ii]}=\"${POSITIONALS[$ii]}\"" || { echo "Error during argument parsing, possibly an Argbash bug." >&2; exit 1; }
6768
done

resources/examples/simple-standalone.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,28 @@
11
#!/bin/bash
22

3-
# _ARG_POSITIONAL_SINGLE([filename])
3+
# ARG_POSITIONAL_SINGLE([filename])
44
# ARG_OPTIONAL_SINGLE([unit],[u],[What unit we accept (b for bytes, k for kilobytes, M for megabytes)],[b])
55
# ARG_VERSION([echo $0 v0.1])
66
# ARG_OPTIONAL_BOOLEAN([verbose])
77
# ARG_HELP()
88
# ARGBASH_GO()
99
# needed because of Argbash --> m4_ignore([
10-
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
10+
### START OF CODE GENERATED BY ARGBASH v1.3.0 one line above ###
1111
# Argbash is a bash code generator used to get arguments parsing right.
1212
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
13+
1314
# THE DEFAULTS INITIALIZATION --- POSITIONALS
1415
# THE DEFAULTS INITIALIZATION --- OPTIONALS
1516
_ARG_UNIT="b"
1617
_ARG_VERBOSE=off
1718

1819
# THE PRINT HELP FUNCION
19-
function print_help
20+
print_help ()
2021
{
21-
echo "Usage: $0 [--unit <arg>] [--version] [--(no-)verbose] [--help] <filename>"
22-
echo -e "\t<filename>: "
23-
echo -e "\t-u,--unit: What unit we accept (b for bytes, k for kilobytes, M for megabytes) (default: '"b"')"
24-
echo -e "\t-v,--version: Prints version"
25-
echo -e "\t--verbose,--no-verbose: (default: 'off')"
26-
echo -e "\t-h,--help: Prints help"
22+
printf "Usage: $0 [-u|--unit <arg>] [-v|--version] [--(no-)verbose] [-h|--help] <filename>\n"
23+
printf "\t-u,--unit: What unit we accept (b for bytes, k for kilobytes, M for megabytes) (default: '"b"')\n"
24+
printf "\t-v,--version: Prints version\n"
25+
printf "\t-h,--help: Prints help\n"
2726
}
2827

2928
# THE PARSING ITSELF
@@ -60,7 +59,7 @@ done
6059
POSITIONAL_NAMES=('_ARG_FILENAME' )
6160
test ${#POSITIONALS[@]} -lt 1 && { ( echo "FATAL ERROR: Not enough positional arguments --- we require exactly 1, but got only ${#POSITIONALS[@]}."; print_help ) >&2; exit 1; }
6261
test ${#POSITIONALS[@]} -gt 1 && { ( echo "FATAL ERROR: There were spurious positional arguments --- we expect exactly 1, but got ${#POSITIONALS[@]} (the last one was: '${POSITIONALS[@]: -1}')."; print_help ) >&2; exit 1; }
63-
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
62+
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
6463
do
6564
eval "${POSITIONAL_NAMES[$ii]}=\"${POSITIONALS[$ii]}\"" || { echo "Error during argument parsing, possibly an Argbash bug." >&2; exit 1; }
6665
done

resources/examples/simple-wrapper.sh

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,26 @@
11
#!/bin/bash
22

3-
# _ARG_POSITIONAL_SINGLE([directory])
3+
# ARG_POSITIONAL_SINGLE([directory])
44
# ARGBASH_WRAP([simple],[filename])
55
# ARG_HELP([This program tells you size of files in a given directory in units you choose.])
66
# ARGBASH_GO()
77
# needed because of Argbash --> m4_ignore([
8-
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
8+
### START OF CODE GENERATED BY ARGBASH v1.3.0 one line above ###
99
# Argbash is a bash code generator used to get arguments parsing right.
1010
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
11+
1112
# THE DEFAULTS INITIALIZATION --- POSITIONALS
1213
# THE DEFAULTS INITIALIZATION --- OPTIONALS
1314
_ARG_UNIT="b"
1415
_ARG_VERBOSE=off
1516

1617
# THE PRINT HELP FUNCION
17-
function print_help
18+
print_help ()
1819
{
1920
echo "This program tells you size of files in a given directory in units you choose."
20-
echo "Usage: $0 [--unit <arg>] [--(no-)verbose] [--help] <directory>"
21-
echo -e "\t<directory>: "
22-
echo -e "\t-u,--unit: What unit we accept (b for bytes, k for kibibytes, M for mebibytes) (default: '"b"')"
23-
echo -e "\t--verbose,--no-verbose: (default: 'off')"
24-
echo -e "\t-h,--help: Prints help"
21+
printf "Usage: $0 [-u|--unit <arg>] [--(no-)verbose] [-h|--help] <directory>\n"
22+
printf "\t-u,--unit: What unit we accept (b for bytes, k for kibibytes, M for mebibytes) (default: '"b"')\n"
23+
printf "\t-h,--help: Prints help\n"
2524
}
2625

2726
# THE PARSING ITSELF
@@ -54,7 +53,7 @@ done
5453
POSITIONAL_NAMES=('_ARG_DIRECTORY' )
5554
test ${#POSITIONALS[@]} -lt 1 && { ( echo "FATAL ERROR: Not enough positional arguments --- we require exactly 1, but got only ${#POSITIONALS[@]}."; print_help ) >&2; exit 1; }
5655
test ${#POSITIONALS[@]} -gt 1 && { ( echo "FATAL ERROR: There were spurious positional arguments --- we expect exactly 1, but got ${#POSITIONALS[@]} (the last one was: '${POSITIONALS[@]: -1}')."; print_help ) >&2; exit 1; }
57-
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
56+
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
5857
do
5958
eval "${POSITIONAL_NAMES[$ii]}=\"${POSITIONALS[$ii]}\"" || { echo "Error during argument parsing, possibly an Argbash bug." >&2; exit 1; }
6059
done

resources/examples/simple.sh

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,29 @@
11
#!/bin/bash
22

3-
# _ARG_POSITIONAL_SINGLE([filename])
3+
# ARG_POSITIONAL_SINGLE([filename])
44
# ARG_OPTIONAL_SINGLE([unit],[u],[What unit we accept (b for bytes, k for kibibytes, M for mebibytes)],[b])
55
# ARG_VERSION([echo $0 v0.1])
66
# ARG_OPTIONAL_BOOLEAN([verbose])
77
# ARG_HELP([This program tells you size of file that you pass to it in chosen units.])
88
# ARGBASH_GO()
99
# needed because of Argbash --> m4_ignore([
10-
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
10+
### START OF CODE GENERATED BY ARGBASH v1.3.0 one line above ###
1111
# Argbash is a bash code generator used to get arguments parsing right.
1212
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
13+
1314
# THE DEFAULTS INITIALIZATION --- POSITIONALS
1415
# THE DEFAULTS INITIALIZATION --- OPTIONALS
1516
_ARG_UNIT="b"
1617
_ARG_VERBOSE=off
1718

1819
# THE PRINT HELP FUNCION
19-
function print_help
20+
print_help ()
2021
{
2122
echo "This program tells you size of file that you pass to it in chosen units."
22-
echo "Usage: $0 [--unit <arg>] [--version] [--(no-)verbose] [--help] <filename>"
23-
echo -e "\t<filename>: "
24-
echo -e "\t-u,--unit: What unit we accept (b for bytes, k for kibibytes, M for mebibytes) (default: '"b"')"
25-
echo -e "\t-v,--version: Prints version"
26-
echo -e "\t--verbose,--no-verbose: (default: 'off')"
27-
echo -e "\t-h,--help: Prints help"
23+
printf "Usage: $0 [-u|--unit <arg>] [-v|--version] [--(no-)verbose] [-h|--help] <filename>\n"
24+
printf "\t-u,--unit: What unit we accept (b for bytes, k for kibibytes, M for mebibytes) (default: '"b"')\n"
25+
printf "\t-v,--version: Prints version\n"
26+
printf "\t-h,--help: Prints help\n"
2827
}
2928

3029
# THE PARSING ITSELF
@@ -61,7 +60,7 @@ done
6160
POSITIONAL_NAMES=('_ARG_FILENAME' )
6261
test ${#POSITIONALS[@]} -lt 1 && { ( echo "FATAL ERROR: Not enough positional arguments --- we require exactly 1, but got only ${#POSITIONALS[@]}."; print_help ) >&2; exit 1; }
6362
test ${#POSITIONALS[@]} -gt 1 && { ( echo "FATAL ERROR: There were spurious positional arguments --- we expect exactly 1, but got ${#POSITIONALS[@]} (the last one was: '${POSITIONALS[@]: -1}')."; print_help ) >&2; exit 1; }
64-
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
63+
for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
6564
do
6665
eval "${POSITIONAL_NAMES[$ii]}=\"${POSITIONALS[$ii]}\"" || { echo "Error during argument parsing, possibly an Argbash bug." >&2; exit 1; }
6766
done

src/stuff.m4

Lines changed: 16 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -285,12 +285,11 @@ m4_define([ARG_OPTIONAL_SINGLE], [m4_do(
285285

286286

287287
m4_define([ARG_POSITIONAL_DOUBLEDASH], [m4_do(
288-
[m4_ifblank(m4_list_contains([BLACKLIST], [--]), [_ARG_POSITIONAL_DOUBLEDASH($@)])],
288+
[m4_ifblank(m4_list_contains([BLACKLIST], [--]), [[$0($@)]_ARG_POSITIONAL_DOUBLEDASH($@)])],
289289
)])
290290

291291

292292
m4_define([_ARG_POSITIONAL_DOUBLEDASH], [m4_do(
293-
[[$0($@)]],
294293
[m4_define([HAVE_DOUBLEDASH], 1)],
295294
)])
296295

@@ -399,7 +398,7 @@ dnl $1 = short name (opt)
399398
m4_define([ARG_VERBOSE], [m4_do(
400399
[[$0($@)]],
401400
[_A_OPTIONAL],
402-
[_ARG_OPTIONAL_INCREMENTAL([verbose], [$1], [Set verbose output (can be specified multiple times to increase the effect)])],
401+
[_ARG_OPTIONAL_INCREMENTAL([verbose], [$1], [Set verbose output (can be specified multiple times to increase the effect)], 0)],
403402
)])
404403
405404
@@ -411,7 +410,7 @@ m4_define([ARG_OPTIONAL_BOOLEAN], [m4_do(
411410
[[$0($@)]],
412411
[_A_OPTIONAL],
413412
[_some_opt([$1], [$2], [$3],
414-
m4_ifnblank([$4], [$4], [off]), [bool])],
413+
m4_default([$4], [off]), [bool])],
415414
)])
416415
417416
@@ -474,9 +473,9 @@ m4_define([_POS_ARG_HELP_USAGE], [m4_do(
474473
[single],
475474
[m4_if(_min_argn, 0, [m4_do(
476475
[ @{:@],
477-
[default: '"],
476+
[default: '\n"],
478477
[_defaults],
479-
["'],
478+
[\n"'],
480479
[@:}@],
481480
)])],
482481
[more], [_MAKE_USAGE_MORE],
@@ -506,7 +505,7 @@ m4_define([_MAKE_HELP], [m4_do(
506505
],
507506
m4_ifnblank(m4_expand([_HELP_MSG]), m4_expand([[ echo] "_HELP_MSG"
508507
])),
509-
[ echo "Usage: $[]0],
508+
[ printf "Usage: $[]0],
510509
[dnl If we have optionals, display them like [--opt1 arg] [--(no-)opt2] ... according to their type. @<:@ becomes square bracket at the end of processing
511510
],
512511
[m4_if(HAVE_OPTIONAL, 1,
@@ -534,7 +533,7 @@ m4_define([_MAKE_HELP], [m4_do(
534533
)])],
535534
[ m4_join([ ], m4_unquote(m4_list_contents([_POSITIONALS_LIST])))],
536535
)])],
537-
["
536+
[\n"
538537
],
539538
[dnl Don't display extended help for an arg if it doesn't have a description
540539
],
@@ -546,7 +545,7 @@ m4_define([_MAKE_HELP], [m4_do(
546545
[m4_pushdef([argname], m4_if(m4_list_nth(_POSITIONALS_TYPES, idx), [inf], [m4_default(_INF_REPR, argname)]))],
547546
[m4_pushdef([_min_argn], m4_expand([m4_list_nth([_POSITIONALS_MINS], idx)]))],
548547
[m4_pushdef([_defaults], m4_expand([m4_list_nth([_POSITIONALS_DEFAULTS], idx)]))],
549-
[[ echo -e "\t]argname[: ]],
548+
[[ printf "\t]argname[: ]],
550549
[m4_list_nth([_POSITIONALS_MSGS], idx)],
551550
[dnl Check whether we have defaults
552551
],
@@ -555,7 +554,7 @@ m4_define([_MAKE_HELP], [m4_do(
555554
[m4_popdef([_min_argn])],
556555
[m4_popdef([argname])],
557556
[m4_popdef([argname])],
558-
[["
557+
[[\n"
559558
]],
560559
)])])],
561560
)],
@@ -564,7 +563,7 @@ m4_define([_MAKE_HELP], [m4_do(
564563
[dnl Plus, don't display extended help for an arg if it doesn't have a description
565564
],
566565
[m4_if(_NARGS, 0, [], [m4_for([idx], 1, _NARGS, 1, [m4_ifnblank(m4_list_nth([_ARGS_HELP], idx), [m4_do(
567-
[ echo -e "\t],
566+
[ printf "\t],
568567
[dnl Display a short one if it is not blank
569568
],
570569
[m4_ifnblank(m4_list_nth([_ARGS_SHORT], idx), -m4_list_nth([_ARGS_SHORT], idx)[,])],
@@ -586,7 +585,7 @@ m4_define([_MAKE_HELP], [m4_do(
586585
[bool], [ (m4_list_nth([_ARGS_DEFAULT], idx) by default)],
587586
[repeated], [ (default array: m4_list_nth([_ARGS_DEFAULT], idx) )],
588587
[ @{:@m4_ifnblank(m4_list_nth([_ARGS_DEFAULT], idx), [default: 'm4_list_nth([_ARGS_DEFAULT], idx)'], [no default])@:}@])],
589-
["
588+
[\n"
590589
],
591590
)])])])],
592591
[}
@@ -746,12 +745,13 @@ test ${#POSITIONALS[@]} -lt ]],
746745
[m4_do(
747746
[dnl If we allow up to infinitely many args, we prepare the array for it.
748747
],
749-
[OUR_ARGS=$((${#POSITIONALS@<:@@@:>@} - ${#POSITIONAL_NAMES@<:@@@:>@}))
748+
[_OUR_ARGS=$((${#POSITIONALS@<:@@@:>@} - ${#POSITIONAL_NAMES@<:@@@:>@}))
750749
],
751-
[for (( ii = 0; ii < $OUR_ARGS; ii++))
750+
[for (( ii = 0; ii < $_OUR_ARGS; ii++))
752751
do
753752
POSITIONAL_NAMES+=("_INF_VARNAME@<:@(($ii + _INF_ARGN))@:>@")
754753
done
754+
755755
],
756756
)],
757757
[m4_do(
@@ -766,11 +766,11 @@ done
766766
[[, but got ${#POSITIONALS[@]} (the last one was: '${POSITIONALS[@]: -1}')."; print_help ) >&2; exit 1; }
767767
]],
768768
)])],
769+
[m4_popdef([_NARGS_SPEC])],
769770
[[for (( ii = 0; ii < ${#POSITIONALS[@]}; ii++))
770771
do
771772
eval "${POSITIONAL_NAMES[$ii]}=\"${POSITIONALS[$ii]}\"" || { echo "Error during argument parsing, possibly an Argbash bug." >&2; exit 1; }
772773
done]],
773-
[m4_popdef([_NARGS_SPEC])],
774774
[
775775
],
776776
[m4_list_ifempty([_WRAPPED_ADD_SINGLE], [], [m4_set_foreach([_POS_VARNAMES], [varname], [varname=@{:@@:}@
@@ -874,6 +874,7 @@ m4_define([ARGBASH_GO_BASE], [m4_do(
874874
### START OF CODE GENERATED BY ARGBASH v]_ARGBASH_VERSION[ one line above ###
875875
# Argbash is a bash code generator used to get arguments parsing right.
876876
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
877+
877878
]],
878879
[m4_if(_NO_ARGS_WHATSOEVER, 1, [], [m4_do(
879880
[_MAKE_DEFAULTS

src/version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.2.1
1+
1.3.0

0 commit comments

Comments
 (0)