"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "resources/examples/simple-parsing.sh" between
argbash-2.9.0.tar.gz and argbash-2.10.0.tar.gz

About: argbash is a bash code generator that can assist you in writing scripts that accept arguments.

simple-parsing.sh  (argbash-2.9.0):simple-parsing.sh  (argbash-2.10.0)
#!/bin/bash #!/bin/bash
# ARG_POSITIONAL_SINGLE([filename]) # ARG_POSITIONAL_SINGLE([filename])
# ARG_OPTIONAL_SINGLE([unit],[u],[What unit we accept (b for bytes, k for kibiby tes, M for mebibytes)],[b]) # ARG_OPTIONAL_SINGLE([unit],[u],[What unit we accept (b for bytes, k for kibiby tes, M for mebibytes)],[b])
# ARG_VERSION([echo $0 v0.1]) # ARG_VERSION([echo $0 v0.1])
# ARG_OPTIONAL_BOOLEAN([verbose]) # ARG_OPTIONAL_BOOLEAN([verbose])
# ARG_HELP([This program tells you size of file that you pass to it in chosen un its.]) # ARG_HELP([This program tells you size of file that you pass to it in chosen un its.])
# ARGBASH_SET_INDENT([ ]) # ARGBASH_SET_INDENT([ ])
# ARGBASH_GO() # ARGBASH_GO()
# needed because of Argbash --> m4_ignore([ # needed because of Argbash --> m4_ignore([
### START OF CODE GENERATED BY Argbash v2.9.0 one line above ### ### START OF CODE GENERATED BY Argbash v2.10.0 one line above ###
# Argbash is a bash code generator used to get arguments parsing right. # Argbash is a bash code generator used to get arguments parsing right.
# Argbash is FREE SOFTWARE, see https://argbash.io for more info # Argbash is FREE SOFTWARE, see https://argbash.io for more info
die() die()
{ {
local _ret="${2:-1}" local _ret="${2:-1}"
test "${_PRINT_HELP:-no}" = yes && print_help >&2 test "${_PRINT_HELP:-no}" = yes && print_help >&2
echo "$1" >&2 echo "$1" >&2
exit "${_ret}" exit "${_ret}"
} }
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)