]> Nishi Git Mirror - tewi.git/commitdiff
better version info
authorNishi <nishi@nishi.boats>
Mon, 16 Sep 2024 13:20:36 +0000 (13:20 +0000)
committerNishi <nishi@nishi.boats>
Mon, 16 Sep 2024 13:20:36 +0000 (13:20 +0000)
git-svn-id: file:///raid/svn-personal/tewi/trunk@36 8739d7e6-ffea-ec47-b151-bdff447c6205

Server/main.c

index 2300d291c29ee0aa40a95a8d76ca195d058b4c6f..0208019f5b36c8a9c64e4a6bdfb466bc5ab57581 100644 (file)
@@ -44,7 +44,10 @@ int main(int argc, char** argv) {
                                printf("Under public domain.\n");
                                printf("Original by 2024 Nishi\n");
                                printf("\n");
-                               printf();
+                               printf("Usage: %s [--config|-C config] [--verbose|-v] [--version|-V]\n", argv[0]);
+                               printf("--config  | -C config     : Specify config\n");
+                               printf("--verbose | -v            : Verbose mode\n");
+                               printf("--version | -V            : Version information\n");
                                return 0;
                        } else {
                                fprintf(stderr, "Unknown option: %s\n", argv[i]);