|
1 | | -[](https://ci.appveyor.com/project/gsscoder/commandline) |
| 1 | +[](https://ci.appveyor.com/project/commandlineparser/commandline) |
2 | 2 | [](http://nuget.org/packages/commandlineparser) |
3 | 3 | [](http://nuget.org/packages/commandlineparser) |
4 | 4 | [](http://nuget.org/packages/commandlineparser) |
5 | 5 | [](https://gitter.im/gsscoder/commandline?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) |
6 | 6 |
|
7 | | -Command Line Parser Library 2.0.275.0 beta for CLR. |
| 7 | +Command Line Parser Library for CLR and NetStandard |
8 | 8 | === |
9 | 9 |
|
10 | 10 | **Note:** the API surface has changed since 1.9.x and earlier. If you are looking for documentation on 1.9.x, please see [this branch](https://github.com/gsscoder/commandline/tree/stable-1.9.71.2) |
11 | 11 |
|
12 | 12 | The Command Line Parser Library offers CLR applications a clean and concise API for manipulating command line arguments and related tasks, such as defining switches, options and verb commands. It allows you to display a help screen with a high degree of customization and a simple way to report syntax errors to the end user. |
13 | 13 |
|
| 14 | +``` |
| 15 | +C:\Project> Nuget Install CommandLineParser |
| 16 | +
|
| 17 | +or |
| 18 | +
|
| 19 | +C:\Project> paket install CommandLineParser |
| 20 | +``` |
| 21 | + |
14 | 22 | Everything that is boring and repetitive about parsing command line arguments is delegated to the library, letting developers concentrate on core logic. It's written in **C#** and doesn't depend on other packages. |
15 | 23 |
|
16 | 24 | __This library provides _hassle free_ command line parsing with a constantly updated API since 2005.__ |
@@ -39,11 +47,21 @@ At glance: |
39 | 47 | - Most of features applies with a [CoC](http://en.wikipedia.org/wiki/Convention_over_configuration) philosophy. |
40 | 48 | - C# demo: source [here](https://github.com/gsscoder/commandline/tree/master/demo/ReadText.Demo). |
41 | 49 |
|
42 | | -To install: |
| 50 | +Integrate directly into your project |
43 | 51 | --- |
44 | | - - NuGet way (latest stable): `Install-Package CommandLineParser` |
45 | | - - NuGet way (latest version): `Install-Package CommandLineParser -pre` |
46 | | - - XCOPY way: `cp -r ClonedRepo/src/CommandLine To/Your/Project/Dir` |
| 52 | +It is possible to integrate the CommandLineParser library directly into your project in two ways: |
| 53 | + |
| 54 | +First way is simply copy the .cs files into your project: |
| 55 | +``` |
| 56 | +C:\Projects\MyProject> cp -r ClonedRepo/src/CommandLine To/Your/Project/Dir |
| 57 | +``` |
| 58 | + |
| 59 | +You can also use ILMerge during your library build process: |
| 60 | + |
| 61 | +``` |
| 62 | +C:\Projects\MyProject> msbuild MyProject.sln /p:Configuration=Release |
| 63 | +C:\Projects\MyProject> ilmerge bin\Release\MyProject.exe bin\Release\CommandLineParser.dll bin\Release\MyProject.merged.exe |
| 64 | +``` |
47 | 65 |
|
48 | 66 | To build: |
49 | 67 | --- |
|
0 commit comments