File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1717A simple, light-weight and strongly typed commandline parser made in .Net standard.
1818
1919## Installation
20-
21- PM> Install-Package MatthiWare.CommandLineParser
20+ ``` powershell
21+ PM> Install-Package MatthiWare.CommandLineParser
22+ ```
2223
2324## Configuration
2425
2526#### Using model class with attributes
26-
27+ ``` csharp
2728 using MatthiWare .CommandLine ;
2829 using MatthiWare .CommandLine .Core .Attributes ;
2930
@@ -59,11 +60,12 @@ A simple, light-weight and strongly typed commandline parser made in .Net standa
5960 [Name (" -p" , " --port" ), DefaultValue (8080 )]
6061 public int Port { get ; set ; } // Optional
6162 }
63+ ```
6264
6365_ ** Warning:** Attributes will be overwritten by fluent api if both are configured_
6466
6567#### Using model class and Fluent API
66-
68+ ``` csharp
6769 using MatthiWare .CommandLine ;
6870
6971 static int Main (string [] args )
@@ -104,11 +106,12 @@ _**Warning:** Attributes will be overwritten by fluent api if both are configure
104106
105107 public int Port { get ; set ; } // Optional
106108 }
109+ ```
107110
108111_ ** Warning:** Attributes will be overwritten by fluent api if both are configured_
109112
110113### Commands
111-
114+ ``` csharp
112115 using MatthiWare .CommandLine ;
113116
114117 static int Main (string [] args )
@@ -168,3 +171,4 @@ _**Warning:** Attributes will be overwritten by fluent api if both are configure
168171 {
169172 public bool Verbose { get ; set ; }
170173 }
174+ ```
You can’t perform that action at this time.
0 commit comments