sdispater / clikit

CliKit is a group of utilities to build beautiful and testable command line interfaces.
MIT License
72 stars 17 forks source link

Fix parsing options beyond `--` #2

Closed kevinastone closed 4 years ago

kevinastone commented 5 years ago

Option parsing is expected to stop after a bare double-dash (--). The current shortcuts for --help don't honor this. When creating wrapper commands that are expected to pass user-provided arguments to an underlying command, this can capture unintended options.

It's desirable to allow passing a -- to prevent the head command from parsing the remaining arguments.

See sdispater/poetry#1215

sdispater commented 4 years ago

Thanks!