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:
Kyle Isom 2023-10-21 19:49:36 -07:00
parent 8b63985ac9
commit f393f8614f
1 changed files with 1 additions and 1 deletions

View File

@ -159,7 +159,7 @@ main(int argc, char *argv[])
pbFile = fileName; pbFile = fileName;
if (help) { if (help) {
usage(std::cerr, 1); usage(std::cout, 0);
} }
if (flags->NumArgs() == 0) { if (flags->NumArgs() == 0) {