Skip to content

Commit d63e520

Browse files
committed
Updating help output for CLI.
1 parent 61db207 commit d63e520

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

main.cpp

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,17 @@ QString useCodec(const QString &inputFile, const QString &outputFile,
9595
void printUsage() {
9696
QTextStream out(stdout);
9797
out << "Usage:\n"
98-
<< " decode -i <input_file> -o <output_file> -f <encode|decode> -c <codec>\n\n -k <key>"
99-
<< "Available codecs: base64, rot13, caesar, binary, hex, piglatin, atbash, morse, aes, rsa\n";
98+
<< " decode -i <input_file> -o <output_file> -f <encode|decode> -c <codec> -k <key>\n\n"
99+
<< "Available codecs: base64, rot13, caesar, binary, hex, piglatin, atbash, morse, aes, rsa\n\n"
100+
<< "Arguments that may be used:"
101+
<< "-i, --input file path for the input file.\n"
102+
<< "-o, --output file path for the output file (optional)\n"
103+
<< "-f, --function function to be performed, either encode or decode\n"
104+
<< "-c, --codec codec to be used for the encoding or decoding\n"
105+
<< "-k, --key the key to be used for encoding or decoding.\n"
106+
<< " For AES, this is a text string like a password.\n"
107+
<< " For RSA, this would be the path for the gpg key file.\n"
108+
<< "-h, --help for outputting this dialog.\n";
100109
}
101110

102111
int main(int argc, char *argv[]) {

0 commit comments

Comments
 (0)