From 7c718b7d9674e22f28bc306a7405d198e008dd3a Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sun, 7 Nov 2021 17:42:31 +0100 Subject: [PATCH] Completed help text --- src/main.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 46d0453..d5a80d1 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -14,9 +14,15 @@ #include void print_help() { - std::cout << "usage: pw [-h|--version]\n"; - std::cout << " -h, --help show this help text and exit\n"; - std::cout << " --version show version number and exit\n"; + std::cout << "usage: pw [-h|--version] [-c ] [-d] [-l] [-u] [-s]\n"; + std::cout << " -h, --help show this help text and exit\n"; + std::cout << " --version show version number and exit\n"; + std::cout << " -c, --count password length; default is 24 characters\n"; + std::cout << " -d, --digit allow digits\n"; + std::cout << " -l, --lower allow lower case letters\n"; + std::cout << " -u, --upper allow upper case letters\n"; + std::cout << " -s, --symbol allow symbols and punctuation\n"; + std::cout << "When none of -d, -l, -u, and -s are given, pw acts as if all had been specified.\n"; } void print_version() {