getopt icon indicating copy to clipboard operation
getopt copied to clipboard

Erlang module to parse command line arguments using the GNU getopt syntax

Results 6 getopt issues
Sort by recently updated
recently updated
newest added

otherwise, edoc errored out on `-spec line_length() -> 0..?LINE_LENGTH.` and friends

For example, the call `getopt:usage([{file, undefined, undefined, string, "A file"}], "test").` was producing this: Usage: test [] A file when it should have been producing this: Usage: test A file

`{command, true}` option directs to stop parsing at the first unrecognized token. It is useful when the program has subcommands with their own sets of options. The rest of the...

The output of `rebar3 eunit` contains warnings: ``` _build/test/lib/getopt/test/getopt_test.erl:0: Warning: missing specification for function test/0 _build/test/lib/getopt/test/getopt_test.erl:30: Warning: missing specification for function parse_main_test_/0 _build/test/lib/getopt/test/getopt_test.erl:222: Warning: missing specification for function parse_multiple_repetitions_test_/0 ......

The functions now allow to specify options: [help | {skip, [Name::atom()]}] ``` help - instructs getopt:check/3 to return 'help' when "-h" command line option is given and option specification contains...

README.md > To run the example module run make example.