Kaynağa Gözat

Specifying default arguments in the usage string.

Michele Orrù 11 yıl önce
ebeveyn
işleme
4366606bc7
1 değiştirilmiş dosya ile 3 ekleme ve 1 silme
  1. 3 1
      src/cmdline.c

+ 3 - 1
src/cmdline.c

@@ -27,7 +27,9 @@ void usage(void)
   static const char* help_message = "%s usage: %s"
     " [-r HOST:port | -f X509 | -R RSA]"
     " [-a ATTACK]"
-    " \n";
+    " \n"
+    "If no argument is supplied, by default a public RSA key is expected "
+    "to be read from the standard input.\n";
   fprintf(stderr, help_message,
           program_invocation_short_name,
           program_invocation_name);