-
-
Notifications
You must be signed in to change notification settings - Fork 61
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
Extra arguments apart from what is declared, are not attached correctly #69
Comments
Hi @smac89, thanks for the feedback! The CLI argument parser does not give any special meaning to So what I believe is happening in your example is that Relevant code is around here. As for the question of what should poe do with I need to sleep on it. I'm open to arguments one way or another about how to best handle this. |
#69 Any tokens in the argument list from the first -- are ignored for the purpose of parsing declared cli arguments.
#69 Any tokens in the argument list from the first -- are ignored for the purpose of parsing declared cli arguments.
This was shipped in 0.19.0 🙂 |
I just want to add a disclaimer: I'm not sure whether
poe
was designed the accept extra arguments beyond what was declared for a task, but I noticed that supplying extra args after--
seems to include the extra arguments, so that's what I was trying hereFor example, given the following task declaration:
If I run it using
poe migrate -- --help
, poe will translate it to:This causes an error because as you can see, there is no space between the last argument and
--help
, however without the extra-- --help
, everything works, but I can't pass more arguments to the command.Please help me know if this is defined behavior and how to work around it, or whether it's a bug. Thanks
The text was updated successfully, but these errors were encountered: