Skip to content

Commit

Permalink
Released 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
matejak committed Jul 10, 2016
1 parent 98ff692 commit 1804230
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 14 deletions.
7 changes: 1 addition & 6 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
1.2.1 (???)
1.2.1 (2016-07-10)
------------------

New features:

* TBD: Support for leftover args (kindof - not when upper bound of args is not
known)

Bugfixes:

* Improved the wrapping of scripts to work with positional args
Expand Down
4 changes: 2 additions & 2 deletions bin/argbash.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash

VERSION=1.2.0
VERSION=1.2.1
# DEFINE_SCRIPT_DIR()
# _ARG_POSITIONAL_SINGLE([input],[The input template file])
# ARG_OPTIONAL_SINGLE([output],[o],[Name of the output file (pass '-' for stdout)],[-])
Expand All @@ -12,7 +12,7 @@ VERSION=1.2.0

# ARGBASH_GO()
# needed because of Argbash --> m4_ignore([
### START OF CODE GENERATED BY ARGBASH v1.2.0 one line above ###
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
# Argbash is a bash code generator used to get arguments parsing right.
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
# THE DEFAULTS INITIALIZATION --- POSITIONALS
Expand Down
3 changes: 2 additions & 1 deletion doc/guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -274,11 +274,12 @@ Plus, there are convenience macros:
========= ===================

* 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``.
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.
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

::

./process-single.sh "${_ARGS_PROCESS_SINGLE[@]}"
./process-single.sh "${_ARGS_PROCESS_SINGLE_OPT[@]}"

which is exactly the same as

Expand Down
2 changes: 1 addition & 1 deletion resources/examples/minimal.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# ARG_HELP([This is a minimal demo of Argbash potential])
# ARGBASH_GO()
# needed because of Argbash --> m4_ignore([
### START OF CODE GENERATED BY ARGBASH v1.2.0 one line above ###
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
# Argbash is a bash code generator used to get arguments parsing right.
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
# THE DEFAULTS INITIALIZATION --- POSITIONALS
Expand Down
2 changes: 1 addition & 1 deletion resources/examples/simple-standalone.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# ARG_HELP()
# ARGBASH_GO()
# needed because of Argbash --> m4_ignore([
### START OF CODE GENERATED BY ARGBASH v1.2.0 one line above ###
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
# Argbash is a bash code generator used to get arguments parsing right.
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
# THE DEFAULTS INITIALIZATION --- POSITIONALS
Expand Down
2 changes: 1 addition & 1 deletion resources/examples/simple-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
# ARG_HELP([This program tells you size of files in a given directory in units you choose.])
# ARGBASH_GO()
# needed because of Argbash --> m4_ignore([
### START OF CODE GENERATED BY ARGBASH v1.2.0 one line above ###
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
# Argbash is a bash code generator used to get arguments parsing right.
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
# THE DEFAULTS INITIALIZATION --- POSITIONALS
Expand Down
2 changes: 1 addition & 1 deletion resources/examples/simple.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# ARG_HELP([This program tells you size of file that you pass to it in chosen units.])
# ARGBASH_GO()
# needed because of Argbash --> m4_ignore([
### START OF CODE GENERATED BY ARGBASH v1.2.0 one line above ###
### START OF CODE GENERATED BY ARGBASH v1.2.1 one line above ###
# Argbash is a bash code generator used to get arguments parsing right.
# Argbash is FREE SOFTWARE, know your rights: https://github.com/matejak/argbash
# THE DEFAULTS INITIALIZATION --- POSITIONALS
Expand Down
2 changes: 1 addition & 1 deletion src/version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.2.0
1.2.1

0 comments on commit 1804230

Please sign in to comment.