You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some Unix commands have longer parameter names which just start with a single dash, e.g. -Ssendwait. argparse can handle these parameters but I'm unable to do this with docopt-ng:
#!/usr/bin/env python3"""Usage: foo [options]Options: -Ssendwait wait until request was sent -Snosendwait return immediately"""fromdocoptimportdocoptarguments=docopt(__doc__)
print(arguments)
Hi! Thanks for the issue. Can you explain why you need to use this new syntax, and the existing syntax isn't adequate? Compatibility with an existing other command? Which one? Eg what is stopping you for defining your API as '--nosendwait'? I'm hesitant to increase the scope of docopt unless there is no other workaround. (I realize I'm being curmudgeonly here, thanks for your patience). Thank you!
Yes, this is 100% just to reproduce the CLI parameters of existing applications like /usr/bin/mailx and /usr/bin/sendmail. I can understand if this is out of scope for docopt and it is certainly not a "common" thing. Currently I am resorting to argparse here but I'd love to use only docopt, maybe even by handing in some custom CLI parser or so?
Some Unix commands have longer parameter names which just start with a single dash, e.g.
-Ssendwait
. argparse can handle these parameters but I'm unable to do this with docopt-ng:The text was updated successfully, but these errors were encountered: