Skip to content

just --list should indicate that long and short options aren't positional ones #3338

@iliazeus

Description

@iliazeus

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")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions