Actions
Feature #19598
openHammer should warn when other identifier attributes are used together with --id
Status:
New
Priority:
Low
Assignee:
-
Category:
Hammer core
Target version:
-
Description
In most of commands where hammer needs to identify a resource (info, update, delete commands) it allows to use --id together with --name and sometimes also other identifiers. Hammer doesn't check when there's more identifier options used at the same time. --id takes precedence and the rest is silently ignored. This behavior can be sometimes confusing for users, especially in update commands if they don't expect the option is an identifier:
hammer organization update --id 13 --title some Organization updated
...but the title remains the same (in fact it's not editable at all in this case).
Hammer should:
- mention that the option is an identifier in help
- print a warning or usage error that multiple identifier options are used at the same time
Actions