Skip to content

Commit aacdecb

Browse files
committed
Updated readme
Fixed the namespace and added some more information.
1 parent 446aabc commit aacdecb

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

README.md

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ Features:
1212
And here's some code!
1313

1414
```cs
15-
using Codeaddicts.libArguments;
16-
using Codeaddicts.libArguments.Attributes;
15+
using Codeaddicts.libArgument;
16+
using Codeaddicts.libArgument.Attributes;
1717

1818
// A simple class with some command-line options
1919
public class MyOptions
@@ -52,3 +52,13 @@ public class Program
5252
}
5353
}
5454
```
55+
56+
Now call the application like that:
57+
$ MyApp.exe -i test -o test --log --num 123 or
58+
$ MyApp.exe --input test --output test --log --num 123
59+
60+
## How about optional arguments?
61+
Absolutely no problem!
62+
63+
Just add a parameterless constructor to your Options class and initialize
64+
your optional variables there. It's a piece of cake!

0 commit comments

Comments
 (0)