Optional positional args #4320
davidolrik
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a task with one option, but also want the rest of what ever args passed after that option to be passed to one of the commands I'm running.
As it is now, if you specify an
arg
, it becomes required which is not what I want.The closest I can come is
{{arg(name='args', var=true, default='')}}
which gives me on single arg:''
.I propose a
default=nil
or aoptional=true
to solve this issue.Beta Was this translation helpful? Give feedback.
All reactions