Commit 6fdbe014129729e009c3e8ce209aced812de755f

Con Kolivas 2011-07-21T13:11:15

Remove the nil arguments check to allow starting without parameters.

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/main.c b/main.c
index fb89201..9ea5e34 100644
--- a/main.c
+++ b/main.c
@@ -2666,8 +2666,6 @@ int main (int argc, char *argv[])
 	opt_register_table(opt_cmdline_table,
 			   "Options for command line only");
 
-	if (argc == 1)
-		quit(1, "No arguments specified");
 	opt_parse(&argc, argv, applog_and_exit);
 	if (argc != 1)
 		quit(1, "Unexpected extra commandline arguments");