Skip to content

Commit 55b42b2

Browse files
committed
The 2.10.0 release.
1 parent 530f5e2 commit 55b42b2

File tree

13 files changed

+26
-21
lines changed

13 files changed

+26
-21
lines changed

ChangeLog

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
1-
2.9.1 (TBA)
2-
------------------
1+
2.10.1 (TBA)
2+
-------------------
3+
4+
5+
2.10.0 (2020-09-22)
6+
-------------------
37

48
Buxfixes:
59

@@ -9,7 +13,7 @@ Buxfixes:
913
New features:
1014

1115
* Argbash in the container has no longer the terminal output limitation caused by the crlf line ending (#129). Thanks to Felipe Santos (@felipecrs)!.
12-
* The ARG_USE_PROG implementation was missing. Therefore, it was implemented as ARG_USE_PROGRAM using a slightly different interface.
16+
* The `ARG_USE_PROG` implementation was missing. Therefore, it was implemented as `ARG_USE_PROGRAM` using a slightly different interface.
1317

1418

1519
2.9.0 (2020-08-01)

bin/argbash

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424

2525
# ARGBASH_GO()
2626
# needed because of Argbash --> m4_ignore([
27-
### START OF CODE GENERATED BY Argbash v2.9.0 one line above ###
27+
### START OF CODE GENERATED BY Argbash v2.10.0 one line above ###
2828
# Argbash is a bash code generator used to get arguments parsing right.
2929
# Argbash is FREE SOFTWARE, see https://argbash.io for more info
3030

@@ -201,11 +201,11 @@ parse_commandline()
201201
exit 0
202202
;;
203203
-v|--version)
204-
printf '%s %s\n\n%s\n' "argbash" "2.9.0" 'Argbash is an argument parser generator for Bash.'
204+
printf '%s %s\n\n%s\n' "argbash" "2.10.0" 'Argbash is an argument parser generator for Bash.'
205205
exit 0
206206
;;
207207
-v*)
208-
printf '%s %s\n\n%s\n' "argbash" "2.9.0" 'Argbash is an argument parser generator for Bash.'
208+
printf '%s %s\n\n%s\n' "argbash" "2.10.0" 'Argbash is an argument parser generator for Bash.'
209209
exit 0
210210
;;
211211
*)

bin/argbash-1to2

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
# shellcheck disable=SC2016
44
# SC2016: Expressions don't expand in single quotes, use double quotes for that.
55

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

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

bin/argbash-init

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# SC2001: See if you can use ${variable//search/replace} instead.
55
# SC2016: Expressions don't expand in single quotes, use double quotes for that.
66

7-
version=2.9.0
7+
version=2.10.0
88
# ARG_POSITIONAL_SINGLE([output],[Name of the output template],[-])
99
# ARG_OPTIONAL_INCREMENTAL([separate],[s],[Separate the parsing logic (specify two times for complete separation)])
1010
# ARG_OPTIONAL_BOOLEAN([hints],[],[Whether to write hints to the script template])
@@ -19,7 +19,7 @@ version=2.9.0
1919

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

@@ -401,6 +401,8 @@ do_stuff()
401401
}
402402

403403
outfname="$_arg_output"
404+
# we canonicize the empty string input to output filename to the dash
405+
test -n "$outfname" || outfname='-'
404406
test "$outfname" = "-" -a "$_arg_separate" -gt 0 && die "If you want to separate parsing and script body, you have to specify the outname, stdout doesn't work."
405407

406408
if test "$outfname" = '-'

doc/_static/argbash-version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
argbash 2.9.0
1+
argbash 2.10.0
22

33
Argbash is an argument parser generator for Bash.

doc/_static/wrapper-output-action.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Contents of '../src' matching '*.m4':
1212
docopt.m4: 3 kiB
1313
env_vars.m4: 1 kiB
1414
function_generators.m4: 7 kiB
15-
list.m4: 5 kiB
15+
list.m4: 6 kiB
1616
output-bash-script.m4: 1 kiB
1717
output-completion.m4: 4 kiB
1818
output-docopt.m4: 0 kiB

resources/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -209,7 +209,6 @@ version:
209209
release: version $(GENPARSE) $(ARGBASH_TO) examples check
210210
sed -i "1s/([-0-9]+)/($$(date -I))/" $(CHANGELOG)
211211
cd ../doc && $(MAKE) clean && $(MAKE) html && $(MAKE) clean-tmp
212-
$(MAKE) ../docker/Dockerfile
213212

214213
tag:
215214
git tag $(shell cat ../src/version) -s -m 'Version release' master

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.9.0
5+
exit 11 #)Created by argbash-init v2.10.0
66
# ARG_OPTIONAL_SINGLE([option])
77
# ARG_OPTIONAL_BOOLEAN([print])
88
# ARG_POSITIONAL_SINGLE([positional-arg])

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.9.0
5+
exit 11 #)Created by argbash-init v2.10.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.9.0 one line above ###
11+
### START OF CODE GENERATED BY Argbash v2.10.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

0 commit comments

Comments
 (0)