Skip to content

Commit 1804230

Browse files
committed
Released 1.2.1
1 parent 98ff692 commit 1804230

File tree

8 files changed

+10
-14
lines changed

8 files changed

+10
-14
lines changed

ChangeLog

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
1.2.1 (???)
1+
1.2.1 (2016-07-10)
22
------------------
33

4-
New features:
5-
6-
* TBD: Support for leftover args (kindof - not when upper bound of args is not
7-
known)
8-
94
Bugfixes:
105

116
* Improved the wrapping of scripts to work with positional args

bin/argbash.sh

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

3-
VERSION=1.2.0
3+
VERSION=1.2.1
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,7 +12,7 @@ VERSION=1.2.0
1212

1313
# ARGBASH_GO()
1414
# needed because of Argbash --> m4_ignore([
15-
### START OF CODE GENERATED BY ARGBASH v1.2.0 one line above ###
15+
### START OF CODE GENERATED BY ARGBASH v1.2.1 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
1818
# THE DEFAULTS INITIALIZATION --- POSITIONALS

doc/guide.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,11 +274,12 @@ Plus, there are convenience macros:
274274
========= ===================
275275

276276
* As a convenience feature, if you wrap a script with stem ``process_single``, all options that come from the wrapped script (both arguments and values) are stored in an array ``_ARGS_PROCESS_SINGLE``.
277+
In the case where there may be issues with positional arguments (they are order-dependent and the wrapping script may want to inject its own to the wrapped script), you can use ``_ARGS_PROCESS_SINGLE_OPT``, or ``_ARGS_PROCESS_SINGLE_POS``, where only optional/positional arguments are stored.
277278
Therefore, when you finally decide to call ``process-single.sh`` in your script with all wrapped arguments (e.g. ``--some-opt foo --bar``), all you have to do is to write
278279

279280
::
280281

281-
./process-single.sh "${_ARGS_PROCESS_SINGLE[@]}"
282+
./process-single.sh "${_ARGS_PROCESS_SINGLE_OPT[@]}"
282283

283284
which is exactly the same as
284285

resources/examples/minimal.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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.0 one line above ###
10+
### START OF CODE GENERATED BY ARGBASH v1.2.1 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
1313
# THE DEFAULTS INITIALIZATION --- POSITIONALS

resources/examples/simple-standalone.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
# ARG_HELP()
88
# ARGBASH_GO()
99
# needed because of Argbash --> m4_ignore([
10-
### START OF CODE GENERATED BY ARGBASH v1.2.0 one line above ###
10+
### START OF CODE GENERATED BY ARGBASH v1.2.1 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
1313
# THE DEFAULTS INITIALIZATION --- POSITIONALS

resources/examples/simple-wrapper.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
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.0 one line above ###
8+
### START OF CODE GENERATED BY ARGBASH v1.2.1 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
1111
# THE DEFAULTS INITIALIZATION --- POSITIONALS

resources/examples/simple.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
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.0 one line above ###
10+
### START OF CODE GENERATED BY ARGBASH v1.2.1 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
1313
# THE DEFAULTS INITIALIZATION --- POSITIONALS

src/version

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

0 commit comments

Comments
 (0)