-
Notifications
You must be signed in to change notification settings - Fork 293
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
Cannot use 2 verbs at the same time #497
Comments
What is the full text you are sending to the application? I suspect what you are trying to do is not supported - only one verb may be used at a time. The first verb you use is probably trying to read the second verb as if it were a parameter of its own. |
I am sure this is the issue, does it not tokenize verbs on it's own? So now only one verb can be used? You cannot decide to |
No it does not. The library allows "free" argument values (identified by a class CreateProject
{
[Value]
public string ProjectName { get; set; }
} when called with I hope that makes sense. |
Of course it does. I am just accustomed to tokenizing in Python cli etc. I can see how tokenizing to verbs|options/arguments during runtime, make it hard to do precise verb names instead. I will try to write good parser with antlr that can do a list of verbs to do the right AST. Hopefully we can use it here, I really not looking forward to reinvent all attributes that is so nicely implemented here. |
What python library are you using to get that feature? I really only have experience with argparse.. |
I have 2 verbs
upgrade
andvalidate
, upgrade has 2 optionsv
andc
, the validate has 1 optionf
. If I use them separately it all works, if I put 2 verbs together on command line I am getting theUnknownOptionError
from second verb option. i.e if theupgrade
is first, thenf
onvalidate
causes the error, ifvalidate
is first thenv
andc
cause an error.The text was updated successfully, but these errors were encountered: