Added documentation and command help messages to decryption tools.

This commit is contained in:
Heiko Reese
2021-09-12 02:36:21 +02:00
parent e26daf675b
commit 32e060d88d
4 changed files with 80 additions and 5 deletions

View File

@ -53,11 +53,12 @@ int main(int argc, char *argv[]) {
}
// define arguments
const char *shortargs = "p:f:n";
const char *shortargs = "p:f:nh";
static struct option long_options[] = {
{"password", required_argument, NULL, 'p'},
{"infile", required_argument, NULL, 'f'},
{"no-newline", no_argument, NULL, 'n'},
{"help", no_argument, NULL, 'h'},
{0, 0, 0, 0}
};
@ -87,6 +88,10 @@ int main(int argc, char *argv[]) {
case 'n':
add_newline = false;
break;
case 'h':
print_usage(prog_basename);
exit(EXIT_SUCCESS);
break;
}
}