aboutsummaryrefslogtreecommitdiff
path: root/titan.c
diff options
context:
space:
mode:
authorOmar Polo <op@omarpolo.com>2024-01-08 08:39:18 +0000
committerOmar Polo <op@omarpolo.com>2024-01-08 08:39:18 +0000
commitdd3f04b22709a1c169a8d1689e8244214e0a7c32 (patch)
treee40f9c75e07bf24b4b75ddfb949ce0a332304b45 /titan.c
parentfd48b7c0c4093c710b2d692b7abca89b0dbf0a33 (diff)
titan: accept either one or two positional arguments
Diffstat (limited to 'titan.c')
-rw-r--r--titan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/titan.c b/titan.c
index 62733b9..d9736c1 100644
--- a/titan.c
+++ b/titan.c
@@ -269,7 +269,7 @@ main(int argc, char **argv)
if (cert != NULL && key == NULL)
key = cert;
- if (argc > 2)
+ if (argc != 1 && argc != 2)
usage();
in = open_input_file(argc, argv);