]> git.cworth.org Git - apitrace/commit
trim: Add a more condensed usage message for error cases.
authorCarl Worth <cworth@cworth.org>
Sat, 11 Aug 2012 18:46:54 +0000 (11:46 -0700)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Thu, 22 Nov 2012 08:03:00 +0000 (08:03 +0000)
commit86464430187cdc085ca5339c4d665b66b62be2eb
tree3ed9886dd087beed6aa2145467b82616c53fe042
parent16b18dbbde2d13a418dca9fb4bdcd7538c546a39
trim: Add a more condensed usage message for error cases.

When explicitly asking for help, ("apitrace help trim" or "apitrace
trim --help"), the complete help message is still provided.

But when an error case triggers a usage message, (such as an invalid
command-line argument), a more compact usage message is provided so as
to not overwhelm the error message (such as "invalid argument:
--foo").
cli/cli_trim.cpp