Project

General

Profile

Actions

Feature #19598

open

Hammer should warn when other identifier attributes are used together with --id

Added by Tomáš Strachota almost 7 years ago. Updated about 4 years ago.

Status:
New
Priority:
Low
Assignee:
-
Category:
Hammer core
Target version:
-
Difficulty:
Triaged:
Yes
Team Backlog:
Marek
Fixed in Releases:
Found in Releases:
In Kanboard:

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 #1

Updated by Shira Maximov about 4 years ago

  • Triaged set to Yes
Actions

Also available in: Atom PDF