Details
-
Improvement
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
GenericCli-based commands have a --verbose flag, which has two effects:
- some subcommands print additional details
- stack trace is shown in case of exception
I think (1) is more generally useful, while (2) is geared towards developers. To avoid making --verbose commands overwhelming for users in case of errors, I propose to split these two effects.
Possible solutions:
- multi-level --verbose mode (allow specifying -v more than once to get more details)
- introduce a new flag to enable the stack trace
- only print the stack trace if exception message is not meaningful (eg. empty or "null")