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:
parent
8b63985ac9
commit
f393f8614f
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue