Skip to content

Commit b7402ea

Browse files
committed
Release of 2.3.0
1 parent a245aa7 commit b7402ea

File tree

11 files changed

+16
-21
lines changed

11 files changed

+16
-21
lines changed

ChangeLog

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
2.3.0 (TBA)
1+
2.3.0 (2017-02-07)
22
------------------
33

44
New features:

bin/argbash

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

3-
version=2.2.4a
3+
version=2.3.0
44
# DEFINE_SCRIPT_DIR()
55
# ARG_POSITIONAL_SINGLE([input],[The input template file (pass '-' for stdout)])
66
# ARG_OPTIONAL_SINGLE([output],[o],[Name of the output file (pass '-' for stdout)],[-])
@@ -14,7 +14,7 @@ version=2.2.4a
1414

1515
# ARGBASH_GO()
1616
# needed because of Argbash --> m4_ignore([
17-
### START OF CODE GENERATED BY Argbash v2.2.4a one line above ###
17+
### START OF CODE GENERATED BY Argbash v2.3.0 one line above ###
1818
# Argbash is a bash code generator used to get arguments parsing right.
1919
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
2020

@@ -119,7 +119,6 @@ test ${#_positionals[@]} -gt 1 && _PRINT_HELP=yes die "FATAL ERROR: There were s
119119
for (( ii = 0; ii < ${#_positionals[@]}; ii++))
120120
do
121121
eval "${_positional_names[ii]}=\${_positionals[ii]}" || die "Error during argument parsing, possibly an Argbash bug." 1
122-
123122
done
124123

125124
# OTHER STUFF GENERATED BY Argbash

bin/argbash-1to2

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

3-
version=2.2.4a
3+
version=2.3.0
44
# ARG_POSITIONAL_INF([input],[The input file to transform],[1])
55
# ARG_OPTIONAL_SINGLE([output],[o],[Name of the output file (pass '-' for stdout and empty string for the same as input file)],[""])
66
# ARG_VERSION([echo "argbash-1to2 v$version"])
77
# ARG_HELP([Convert a template for argbash>=1,<2 to argbash>=2,<3])
88

99
# ARGBASH_GO()
1010
# needed because of Argbash --> m4_ignore([
11-
### START OF CODE GENERATED BY Argbash v2.2.4a one line above ###
11+
### START OF CODE GENERATED BY Argbash v2.3.0 one line above ###
1212
# Argbash is a bash code generator used to get arguments parsing right.
1313
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1414

@@ -77,7 +77,6 @@ done
7777
for (( ii = 0; ii < ${#_positionals[@]}; ii++))
7878
do
7979
eval "${_positional_names[ii]}=\${_positionals[ii]}" || die "Error during argument parsing, possibly an Argbash bug." 1
80-
8180
done
8281

8382
# OTHER STUFF GENERATED BY Argbash

bin/argbash-init

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

33

4-
version=2.2.4a
4+
version=2.3.0
55
# ARG_POSITIONAL_SINGLE([output],[Name of the output template],["-"])
66
# ARG_OPTIONAL_INCREMENTAL([separate],[s],[Separate the parsing logic (specify two times for complete separation)])
77
# ARG_OPTIONAL_BOOLEAN([hints],[],[Whether to write hints to the script template])
@@ -16,7 +16,7 @@ version=2.2.4a
1616

1717
# ARGBASH_GO()
1818
# needed because of Argbash --> m4_ignore([
19-
### START OF CODE GENERATED BY Argbash v2.2.4a one line above ###
19+
### START OF CODE GENERATED BY Argbash v2.3.0 one line above ###
2020
# Argbash is a bash code generator used to get arguments parsing right.
2121
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
2222

@@ -150,7 +150,6 @@ test ${#_positionals[@]} -gt 1 && _PRINT_HELP=yes die "FATAL ERROR: There were s
150150
for (( ii = 0; ii < ${#_positionals[@]}; ii++))
151151
do
152152
eval "${_positional_names[ii]}=\${_positionals[ii]}" || die "Error during argument parsing, possibly an Argbash bug." 1
153-
154153
done
155154

156155
# OTHER STUFF GENERATED BY Argbash

resources/examples/minimal-raw.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# m4_ignore(
44
echo "This is just a script template, not the script (yet) - pass it to 'argbash' to fix this." >&2
5-
exit 11 #)Created by argbash-init v2.2.4a
5+
exit 11 #)Created by argbash-init v2.3.0
66
# ARG_OPTIONAL_SINGLE([option], , [<option's help message goes here>])
77
# ARG_OPTIONAL_BOOLEAN([print], , [<print's help message goes here>])
88
# ARG_POSITIONAL_SINGLE([positional-arg], [<positional-arg's help message goes here>], )

resources/examples/minimal.m4

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
# m4_ignore(
44
echo "This is just a script template, not the script (yet) - pass it to 'argbash' to fix this." >&2
5-
exit 11 #)Created by argbash-init v2.2.4a
5+
exit 11 #)Created by argbash-init v2.3.0
66
# ARG_OPTIONAL_SINGLE([option], o, [A option with short and long flags and default], [boo])
77
# ARG_OPTIONAL_BOOLEAN([print], , [A boolean option with long flag (and implicit default: off)])
88
# ARG_POSITIONAL_SINGLE([positional-arg], [Positional arg description], )

resources/examples/simple-parsing.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ARGBASH_SET_INDENT([ ])
99
# ARGBASH_GO()
1010
# needed because of Argbash --> m4_ignore([
11-
### START OF CODE GENERATED BY Argbash v2.2.3 one line above ###
11+
### START OF CODE GENERATED BY Argbash v2.3.0 one line above ###
1212
# Argbash is a bash code generator used to get arguments parsing right.
1313
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1414

resources/examples/simple-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
# ARGBASH_SET_INDENT([ ])
99
# ARGBASH_GO()
1010
# needed because of Argbash --> m4_ignore([
11-
### START OF CODE GENERATED BY Argbash v2.2.3 one line above ###
11+
### START OF CODE GENERATED BY Argbash v2.3.0 one line above ###
1212
# Argbash is a bash code generator used to get arguments parsing right.
1313
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1414

resources/examples/simple.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# INCLUDE_PARSING_CODE([simple-parsing.sh])
55
# ARGBASH_GO()
66
# needed because of Argbash --> m4_ignore([
7-
### START OF CODE GENERATED BY Argbash v2.2.3 one line above ###
7+
### START OF CODE GENERATED BY Argbash v2.3.0 one line above ###
88
# Argbash is a bash code generator used to get arguments parsing right.
99
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
1010

src/stuff.m4

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1220,11 +1220,9 @@ done
12201220
)],
12211221
[[for (( ii = 0; ii < ${#_positionals[@]}; ii++))
12221222
do
1223-
]_INDENT_()[eval "${_positional_names[ii]}=\${_positionals[ii]}" || die "Error during argument parsing, possibly an Argbash bug." 1]
1224-
_CASE_RESTRICT_VALUES(
1225-
[], [],
1226-
[_INDENT_()[evaluate_strictness "${_positional_names[ii]}" "${_positionals[ii]##_arg}"
1227-
]])
1223+
]_INDENT_()[eval "${_positional_names[ii]}=\${_positionals[ii]}" || die "Error during argument parsing, possibly an Argbash bug." 1]_CASE_RESTRICT_VALUES(
1224+
[], [], [
1225+
_INDENT_()[evaluate_strictness "${_positional_names[ii]}" "${_positionals[ii]##_arg}"]])
12281226
[done]],
12291227
[
12301228
],

0 commit comments

Comments
 (0)