summaryrefslogtreecommitdiffstats
path: root/src/onetimebluh.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/onetimebluh.c')
-rw-r--r--src/onetimebluh.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/onetimebluh.c b/src/onetimebluh.c
index 877de29..0823f4d 100644
--- a/src/onetimebluh.c
+++ b/src/onetimebluh.c
@@ -30,21 +30,18 @@ int main(int argc, char* argv[]) {
{"decrypt", required_argument, 0, 'd'},
{"encrypt", required_argument, 0, 'e'},
{"key-file", required_argument, 0, 'k'},
- {"key-gen", no_argument, 0, 'g'},
+ {"gen-key", no_argument, 0, 'g'},
{"help", no_argument, 0, 'h'},
- {"nbytes", required_argument, 0, 'b'},
+ {"nbytes", required_argument, 0, 'n'},
{"output", required_argument, 0, 'o'},
{"tear-page", no_argument, 0, 't'},
{0, 0, 0, 0},
};
- if ((opt = getopt_long(argc, argv, "b:d:e:ghk:o:t", options, &option_index)) == -1)
+ if ((opt = getopt_long(argc, argv, "d:e:ghk:n:o:t", options, &option_index)) == -1)
break;
switch (opt) {
- case 'b':
- nbytes = atoi(argv[optind-1]);
- break;
case 'd':
message = argv[optind-1];
command++;
@@ -72,6 +69,9 @@ int main(int argc, char* argv[]) {
error(errno, errno, keyfile);
}
break;
+ case 'n':
+ nbytes = atoi(argv[optind-1]);
+ break;
case 'o':
output = argv[optind-1];
break;