unknown flag when passing arguments from CLI to Task #514
Unanswered
m-saeed-soliman
asked this question in
Q&A
Replies: 2 comments
-
Hi @m-saeed-soliman, Can you mention which OS, shell and Task version you are using? Someone have said that on Powershell on Windows you have to quote |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thank you for reply. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I am trying to use the pretty new feature to pass arguments from CLI when running task to the command itself.
1 add
{{.CLI_ARGS}}
at the end of the taskcmds
2 used the command as
task myTask -- --myArgumentToPass
I always get an error that
--myArgumentToPass
is unknown flag. Task doesn't understand that I am not sending it aan argument and want it only to pass it to my task itself. Does anyone know how to solve this?Beta Was this translation helpful? Give feedback.
All reactions