ko1nksm / getoptions

An elegant option/argument parser for shell scripts (full support for bash and all POSIX shells)
Creative Commons Zero v1.0 Universal
414 stars 21 forks source link

Error using gengetoptions parser ./parser_definition.sh parse prog > parser.sh #30

Closed shinokada closed 3 years ago

shinokada commented 3 years ago

image

I just followed the instruction:

~/Sandbox/examples
❯ gengetoptions parser ./parser_definition.sh parse prog > parser.sh

Deprecated. Use the --file option instead.
gengetoptions: The parser definition 'parser_definition' not found

Am I missing something here?

ko1nksm commented 3 years ago

I'm sorry. I forgot to update the documentation.

gengetoptions parser -f examples/parser_definition.sh parser_definition parse prog

or

cat examples/parser_definition.sh | gengetoptions parser parser_definition parse prog
ko1nksm commented 3 years ago

Fixed the documentation.