Skip to content

Commit e911166

Browse files
authored
Proposed cleanup of list 7.32
1 parent 893cb6c commit e911166

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/Chapter07/Listing07.32.ListPatternMatching.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ namespace AddisonWesley.Michaelis.EssentialCSharp.Chapter07.Listing07_32;
55
public class Program
66
{
77
#region INCLUDE
8-
public static void Main(params string[] args)
8+
public static void Main(string[] args)
99
{
10-
// For simplicitly, commands are assumed
10+
// For simplicity, options are assumed
1111
// to all be lower case.
1212

13-
// The first argument is the command and is
13+
// The first argument is the option and is
1414
// identified by a '/', '-', or '--' prefix.
1515

1616
switch (args)
1717
{
1818
case ["--help" or ['/' or '-', 'h' or '?']]:
19-
// e.g. /?, -?, /h, -h, --help
19+
// e.g. --help, /h, -h, /?, -?
2020
DisplayHelp();
2121
break;
2222
case [ ['/' or '-', char command], ..]:

0 commit comments

Comments
 (0)