Calling *something should print syntax information
Bug #214085 reported by
Siegfried Gevatter
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
P1tr |
Confirmed
|
Low
|
Unassigned |
Bug Description
Using a command which needs arguments without those should print information about the correct syntax.
Changed in p1tr: | |
importance: | Undecided → Low |
status: | New → Confirmed |
To post a comment you must log in.
How would you recommend to implement this? The easiest way would be an if which checks if required parameters are there, and an else which returns the help message of the command in case the requirements of if are not met. But that isn't very agile and has repetitions almost everywhere. There is already an if in each keyword's function, which requires a certain level. Adding one more for this purpose surely doesn't increase code's readability.