Adjust phonebook help usage.
- If a user requests help via the -h flag, the program shouldn't exit with an error code, and it should dump information to stdout, not stderr.
This commit is contained in:
@@ -159,7 +159,7 @@ main(int argc, char *argv[])
|
||||
pbFile = fileName;
|
||||
|
||||
if (help) {
|
||||
usage(std::cerr, 1);
|
||||
usage(std::cout, 0);
|
||||
}
|
||||
|
||||
if (flags->NumArgs() == 0) {
|
||||
|
||||
Reference in New Issue
Block a user