Browse Source

Update help text

Georgi Chorbadzhiyski 7 years ago
parent
commit
bdb80772ac
1 changed files with 5 additions and 3 deletions
  1. 5
    3
      tomcast.c

+ 5
- 3
tomcast.c View File

@@ -872,8 +872,9 @@ void show_usage(int ident_only) {
872 872
 	}
873 873
 	if (ident_only)
874 874
 		return;
875
-	puts("Usage: tomcast -c config_file");
875
+	puts("Usage: tomcast [opts] -c config_file");
876 876
 	puts("");
877
+	puts("  Options:");
877 878
 	puts("\t-c file\t\tChannels configuration file");
878 879
 	puts("\t-i ident\tServer ident. Must be formated as PROVIDER/SERVER");
879 880
 	puts("\t-d pidfile\tDaemonize and write daemon pid into pidfile");
@@ -882,9 +883,10 @@ void show_usage(int ident_only) {
882 883
 	puts("\t-l host\t\tSyslog host (default: disabled)");
883 884
 	puts("\t-L port\t\tSyslog port (default: 514)");
884 885
 	puts("\t-R\t\tSend reset packets when changing sources.");
885
-	puts("Server settings:");
886
+	puts("");
887
+	puts("  Web server options:");
886 888
 	puts("\t-b addr\t\tLocal IP address to bind.   (default: 0.0.0.0)");
887
-	puts("\t-p port\t\tPort to listen.             (default: 0)");
889
+	puts("\t-p port\t\tPort to listen.             (default: disabled)");
888 890
 	puts("");
889 891
 }
890 892
 

Loading…
Cancel
Save