Completed help text

This commit is contained in:
Bob Polis 2021-11-07 17:42:31 +01:00
parent 10072e4948
commit 7c718b7d96

View File

@ -14,9 +14,15 @@
#include <libscnumerics.hpp>
void print_help() {
std::cout << "usage: pw [-h|--version]\n";
std::cout << "usage: pw [-h|--version] [-c <len>] [-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 <num> 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() {