diff --git a/examples/bench.sh b/examples/bench.sh index 8e7d2e8..64618fb 100755 --- a/examples/bench.sh +++ b/examples/bench.sh @@ -33,8 +33,7 @@ gengetoptions library > "$lib" bench "library" # Use as generator -export PARSER=parse -gengetoptions parser -f ./example.sh parser_definition "$PARSER" > "$lib" +gengetoptions parser -f ./example.sh parser_definition > "$lib" bench "generator" rm "$lib" diff --git a/examples/example.sh b/examples/example.sh index 6a7e45e..e75d070 100755 --- a/examples/example.sh +++ b/examples/example.sh @@ -33,8 +33,6 @@ case ${MODE:-command:} in eval "$(getoptions parser_definition) exit 1" ;; generator:*) . "${MODE#*:}" - "$PARSER" "$@" - eval "set -- $REST" esac echo "FLAG1:$FLAG1 FLAG2:$FLAG2 FLAG3:$FLAG3"