From 7e4883bd3bcda9fa79b3a8e825e982d7342ac7a7 Mon Sep 17 00:00:00 2001 From: Koichi Nakashima Date: Sun, 18 Aug 2024 22:55:46 +0900 Subject: [PATCH] Simplify the examples --- examples/bench.sh | 3 +-- examples/example.sh | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) 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"