Actions
Bug #3993
closedUpdate commands should fail when no parameters are provided
Status:
Rejected
Priority:
Normal
Assignee:
-
Category:
Hammer core
Target version:
-
Description
# hammer organization create --name myuniqueorg1 Organization created # hammer organization info --name myuniqueorg1 Id: 109 Name: myuniqueorg1 Created at: 2014/01/10 22:09:36 Updated at: 2014/01/10 22:09:36 # hammer organization update --id 109 --id 4 Organization updated # echo $? 0 # hammer organization update --id 109 --new-name Organization updated # echo $? 0
I'd argue that the last commands should have returned a non-zero return code and a message stating something along the lines of "you passed redundant arguments" and "missing value for attribute $foo"
Actions