Skip to content

Command flags after arguments are discarded without warning  #183

@qmuntal

Description

@qmuntal

Several folks and I have been hit by this issue:

  • notation sign --key=$KEY_NAME $IMAGE works
  • notation sign $IMAGE --key=$KEY_NAME does not works and errors out with signing key not found.

The same problem applies to any non-required flag which is used together with an argument, i.e. -p/-u.

Using flags after arguments seems not to be supported by urfave/cli, see urfave/cli#976.

We should at least error early with a meaningful message instead of executing the normal workflow and having a random error message.

@dtzar

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingsupportabilityNeed support from the community

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions