From 7fd66536cf5e679bc4575bef7ce5fbcc68e73fb9 Mon Sep 17 00:00:00 2001 From: Renato Silva Date: Thu, 11 Sep 2014 17:37:56 -0300 Subject: [PATCH] Update the Bash example with the new Ruby front end. --- example.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/example.sh b/example.sh index e688b07..3127215 100644 --- a/example.sh +++ b/example.sh @@ -20,11 +20,8 @@ ## used instead. Short version is not available in this ## format. -# Bash version -source easyoptions.sh "$@" || exit - -# Ruby version (faster) -# eval "$(from="$0" ./easyoptions.rb "$@" || echo exit 1)" + source easyoptions || exit # Ruby implementation +# source easyoptions.sh || exit # Bash implementation, slower # Boolean and parameter options [[ -n "$some_option" ]] && echo "Option specified: --some-option"