Skip to content

Commit f48944e

Browse files
committed
added --help support
1 parent de51676 commit f48944e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

NetStorageExample/CMS.cs

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,6 @@ static void Main(string[] args)
5454
{
5555
switch (firstarg)
5656
{
57-
case "-h":
58-
help();
59-
return;
6057
case "-a":
6158
action = arg;
6259
break;
@@ -81,6 +78,11 @@ static void Main(string[] args)
8178
}
8279
firstarg = null;
8380
}
81+
else if (arg == "-h" || arg == "--help" || arg == "/?")
82+
{
83+
help();
84+
return;
85+
}
8486
else if (arg == "-indexzip")
8587
indexZip = true;
8688
else if (!arg.StartsWith("-"))

0 commit comments

Comments
 (0)