Skip to content

Commit

Permalink
Simplify the examples
Browse files Browse the repository at this point in the history
  • Loading branch information
ko1nksm committed Aug 18, 2024
1 parent 5b232a8 commit 7e4883b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions examples/bench.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 0 additions & 2 deletions examples/example.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 7e4883b

Please sign in to comment.