+2006-08-11 Daiki Ueno <ueno@unixuser.org>
+
+ * starttls.c (main): Added --help option.
+
2006-08-10 Daiki Ueno <ueno@unixuser.org>
* starttls.c (main): Use poll(2) emulation from gnulib; avoid some
{
{"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;
case 'k':
opt_key_file = optarg;
break;
+ case 'h':
+ usage (argv[0]);
+ return 0;
default:
usage (argv[0]);
return 1;