commit c08e934c449c7a030fb1ebacd3166820b23faeb3
parent 262ccc2005617eb633f5b3ba434ee26f8000e0a8
Author: Drew DeVault <sir@cmpwn.com>
Date: Sun, 20 Sep 2020 14:41:03 -0400
Change -C to -E for client certificates
More consistent with curl
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/gmnic.c b/src/gmnic.c
@@ -17,7 +17,7 @@ static void
usage(char *argv_0)
{
fprintf(stderr,
- "usage: %s [-46lLiIN] [-C cert] [-d input] [-D path] gemini://...\n",
+ "usage: %s [-46lLiIN] [-E cert] [-d input] [-D path] gemini://...\n",
argv_0);
}
@@ -44,7 +44,7 @@ main(int argc, char *argv[])
};
int c;
- while ((c = getopt(argc, argv, "46C:d:D:hlLiIN")) != -1) {
+ while ((c = getopt(argc, argv, "46d:D:E:hlLiIN")) != -1) {
switch (c) {
case '4':
hints.ai_family = AF_INET;
@@ -52,9 +52,6 @@ main(int argc, char *argv[])
case '6':
hints.ai_family = AF_INET6;
break;
- case 'C':
- assert(0); // TODO: Client certificates
- break;
case 'd':
input_mode = INPUT_READ;
input_source = fmemopen(optarg, strlen(optarg), "r");
@@ -72,6 +69,9 @@ main(int argc, char *argv[])
}
}
break;
+ case 'E':
+ assert(0); // TODO: Client certificates
+ break;
case 'h':
usage(argv[0]);
return 0;