From 0701d155932e19bea1bc425f5e5a5bbfd3989c79 Mon Sep 17 00:00:00 2001 From: Seppia Date: Tue, 29 Nov 2016 21:59:11 +0100 Subject: changed options key-get to gen-key and short for nbytes from b to n --- src/onetimebluh.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') 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; -- cgit v1.2.3