Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianaisemberg committed Jun 19, 2011
1 parent 1fe8319 commit d6de453
Showing 1 changed file with 19 additions and 8 deletions.
27 changes: 19 additions & 8 deletions README.md
@@ -1,10 +1,7 @@
CLAP: A Kick-Ass .NET Command-Line Parser
=========================================

Documentation by samples
------------------------
Basic: One verb. Some parameters.

Basic example: One verb, Some parameters
----------------------------------------
```c#
class Program
{
Expand All @@ -17,13 +14,27 @@ class Program
class MyApp
{
[Verb]
public static void Print(string name, int count)
public static void Print(string text, int count)
{
//
for (int i = 0; i < count; i++)
{
Console.WriteLine(text);
}
}
}
```

<pre>
>myexe print -name:adrian -count:10
>myexe print -text:"Hello World" -count:10
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
Hello World
</pre>

0 comments on commit d6de453

Please sign in to comment.