* starttls.c (main): Added --help option.
[elisp/starttls.git] / starttls.c
index 4127db7..3002201 100644 (file)
@@ -135,12 +135,13 @@ main (argc, argv)
     {
       {"cert-file", 1, 0, 'c'},
       {"key-file", 1, 0, 'k'},
+      {"help", 0, 0, 'h'},
       {0, 0, 0, 0}
     };
 
   while (1)
     {
-      c = getopt_long (argc, argv, "c:k:", long_options, &option_index);
+      c = getopt_long (argc, argv, "c:k:h", long_options, &option_index);
       if (c == -1)
        break;
     
@@ -152,6 +153,9 @@ main (argc, argv)
        case 'k':
          opt_key_file = optarg;
          break;
+       case 'h':
+         usage (argv[0]);
+         return 0;
        default:
          usage (argv[0]);
          return 1;