Update the Bash example with the new Ruby front end.
This commit is contained in:
parent
ae63632a7e
commit
7fd66536cf
|
@ -20,11 +20,8 @@
|
||||||
## used instead. Short version is not available in this
|
## used instead. Short version is not available in this
|
||||||
## format.
|
## format.
|
||||||
|
|
||||||
# Bash version
|
source easyoptions || exit # Ruby implementation
|
||||||
source easyoptions.sh "$@" || exit
|
# source easyoptions.sh || exit # Bash implementation, slower
|
||||||
|
|
||||||
# Ruby version (faster)
|
|
||||||
# eval "$(from="$0" ./easyoptions.rb "$@" || echo exit 1)"
|
|
||||||
|
|
||||||
# Boolean and parameter options
|
# Boolean and parameter options
|
||||||
[[ -n "$some_option" ]] && echo "Option specified: --some-option"
|
[[ -n "$some_option" ]] && echo "Option specified: --some-option"
|
||||||
|
|
Loading…
Reference in New Issue