docopt / docopt.go

A command-line arguments parser that will make you smile.
http://docopt.org/
MIT License
1.43k stars 111 forks source link

Bind() does not work if usage have "--" separator #53

Closed seletskiy closed 4 years ago

seletskiy commented 6 years ago

If command is declared with usage like this:

command --flag -- <args>...

Bind() invokation will fail with following error:

mapping of "--" is not found in given struct, or is an unexported field

I guess -- should be filtered out when binding args.

cc @aviddiviner

seletskiy commented 5 years ago

@aviddiviner: can you by any chance look at this issue?