Skip to content

Commit f36bf7c

Browse files
committed
Release of 2.8.0
1 parent a731a40 commit f36bf7c

File tree

14 files changed

+26
-19
lines changed

14 files changed

+26
-19
lines changed

ChangeLog

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
1-
2.8.0 (TBA)
1+
2.8.0 (2019-01-26)
22
-----------
33

44
New features:
55

66
* Allow argbash and argbash-init to be run from symbolic links.
77
* Allow scripts generated by argbash-init with complete separation (`-s -s`) to be run from a symbolic link.
8-
* Double quotes in help messages are escaped (fixes #61).
8+
* Implemented output to generate manpages using the `rst2man` utility (fixes #37).
99
* Introduced the `ARG_VERSION_AUTO` macro.
10-
* Enabled manpage output consumable by the `rst2man` utility.
10+
11+
Bugfixes:
12+
13+
* Double quotes in help messages are escaped (fixes #61).
14+
* Fixed regression that allowed duplicate short options (fixes #58).
1115

1216

1317
2.7.1 (2018-08-15)

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ Following outputs are available:
5858
- POSIX scripts that use `getopts`, also tailor-made.
5959
- Bash completion.
6060
- [docopt](https://docopt.org)-compliant usage message.
61+
- Manpage output using [rst2man](http://docutils.sourceforge.net/sandbox/manpage-writer/rst2man.txt).
6162

6263
The utility has been inspired by Python's `argparse` and the `shflags` project.
6364

bin/argbash

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

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

@@ -187,11 +187,11 @@ parse_commandline()
187187
exit 0
188188
;;
189189
-v|--version)
190-
printf '%s %s\n\n%s\n' "argbash" "2.7.1" 'Argbash is an argument parser generator for Bash.'
190+
printf '%s %s\n\n%s\n' "argbash" "2.8.0" 'Argbash is an argument parser generator for Bash.'
191191
exit 0
192192
;;
193193
-v*)
194-
printf '%s %s\n\n%s\n' "argbash" "2.7.1" 'Argbash is an argument parser generator for Bash.'
194+
printf '%s %s\n\n%s\n' "argbash" "2.8.0" 'Argbash is an argument parser generator for Bash.'
195195
exit 0
196196
;;
197197
*)

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.7.1
6+
version=2.8.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.7.1 one line above ###
14+
### START OF CODE GENERATED BY Argbash v2.8.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: 2 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.7.1
7+
version=2.8.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.7.1
1919

2020
# ARGBASH_GO()
2121
# needed because of Argbash --> m4_ignore([
22-
### START OF CODE GENERATED BY Argbash v2.7.1 one line above ###
22+
### START OF CODE GENERATED BY Argbash v2.8.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

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.7.1
1+
argbash 2.8.0
22

33
Argbash is an argument parser generator for Bash.

doc/_static/wrapper-output-action.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Contents of '../src' matching '*.m4':
1616
output-bash-script.m4: 1 kiB
1717
output-completion.m4: 4 kiB
1818
output-docopt.m4: 0 kiB
19+
output-manpage-defs.m4: 1 kiB
1920
output-manpage.m4: 1 kiB
2021
output-posix-script.m4: 3 kiB
2122
output-strip-all.m4: 0 kiB

doc/guide.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ So let's get back to argument types.
7979
Below, is a list of argument types and macros that you have to write to support those (e.g. ``ARGBASH_GO`` is a macro and ``ARG_OPTIONAL_BOOLEAN([verbose], [Verbose mode])`` is a macro called wit two arguments --- ``verbose`` and ``Verbose mode``).
8080
Place those macros in your files as ``bash`` comments.
8181

82+
8283
Your script
8384
-----------
8485

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.7.1
5+
exit 11 #)Created by argbash-init v2.8.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.7.1
5+
exit 11 #)Created by argbash-init v2.8.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], )

0 commit comments

Comments
 (0)