-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Arguments have hidden positional dependency #28
Comments
@eyzhao I would have written that opt string differently:
|
Thanks shntnu, Follow-up question. If there's a more complex set of arguments, would that necessitate encoding every possible ordering of parameters? Or is there a more elegant solution? |
Ah, but the version I have above is order invariant
give the same result. |
Oh! My apologies. I misunderstood those last two lines. |
Hello there,
Thank you for bringing this phenomenal tool to R!
I'm on docopt_0.4.5 and I've noticed a strange behaviour regarding order of arguments. Here's an example:
When I run
it works just fine, but if I reverse the argument order of -p and -o as follows:
I get an error. The script loads
meta/mutyh_germline
intoPATHS
instead of correctly loadingpaths/germline_paths.txt
intoPATHS
. This seems to suggest a hidden dependency on the order of arguments, not just which flags they follow.The text was updated successfully, but these errors were encountered: