If we take a following justfile:
[arg("foo", long)]
default foo="bar":
echo {{foo}}
Then just --list gives the following output (on version 1.50.0):
Available recipes:
default foo="bar"
Unfortunately, this output does not tell the user that foo is not a positional argument. In fact, removing the arg attribute does not change the output of just --list.
I would like the output to be changed to something like this:
- if the argument has a
long attribute, then that becomes its name in the output of just --list (e.g. --foo="bar")
- else, if the argument has a
short attribute, then that becomes its name (e.g. -F "bar")
- else, the argument name is unchanged in the output (e.g.
foo="bar")
If we take a following
justfile:Then
just --listgives the following output (on version1.50.0):Unfortunately, this output does not tell the user that
foois not a positional argument. In fact, removing theargattribute does not change the output ofjust --list.I would like the output to be changed to something like this:
longattribute, then that becomes its name in the output ofjust --list(e.g.--foo="bar")shortattribute, then that becomes its name (e.g.-F "bar")foo="bar")