Open jyn514 opened 3 years ago
Hmm, looking at http://docopt.org/ it looks like this is intended behavior, since [--dir <directory>]
is the same as [--dir] [<directory>]
? Why is the --
being ignored, though?
For context, this is what I originally wanted to do:
Usage:
cargo deadlinks [--dir <directory>] [options] [-- <cargo_arguments>...]
but cargo deadlinks -- --document-private-items
was treating document-private
as the <directory>
, not part of cargo_arguments
.
I don't know, sorry. I haven't used docopt in years. In your last issue, I pointed you to the project status.
I guess that wasn't enough to scare you off. I've emboldened the message: https://github.com/docopt/docopt.rs#this-crate-is-unmaintained
Ok, no problem. I hadn't switched because I hadn't had the time. Last night I ended up rewriting this with pico args and it turned out pretty well I think: https://github.com/deadlinks/cargo-deadlinks/pull/116
Feel free to close this if you don't plan to fix it.
This is wrong - docopt should either exit with an error or ignore the flag altogether (my preference is to exit with an error).