Skip to content

Commit 9871b62

Browse files
committed
added zip
1 parent 5ed81f5 commit 9871b62

5 files changed

Lines changed: 76 additions & 12 deletions

File tree

v2/book/examples/docopt.net.html

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
2+
<h1>RSCG nr 248 : docopt.net</h1>
3+
4+
<h2>Info</h2>
5+
Nuget : <a href="https://www.nuget.org/packages/docopt.net/" target="_blank">https://www.nuget.org/packages/docopt.net/</a>
6+
7+
<p>You can find more details at : <a href="https://github.com/docopt/docopt.net" target="_blank"> https://github.com/docopt/docopt.net</a></p>
8+
9+
<p>Author :Atif Aziz</p>
10+
11+
<p>Source: <a href="https://github.com/docopt/docopt.net" target="_blank">https://github.com/docopt/docopt.net</a> </p>
12+
13+
<h2>About</h2>
14+
15+
Generating command line argument parsers from usage documentation.
16+
17+
<h2>
18+
How to use
19+
</h2>
20+
<h3>
21+
Add reference to the <a href="https://www.nuget.org/packages/docopt.net/" target="_blank">docopt.net</a> in the csproj
22+
</h3>
23+
<img src="images/docopt.net/ConsoleArgs.csproj.png" width="580" height="580" />
24+
25+
<h3>This was for me the <b>starting</b> code</h3>
26+
27+
<br />
28+
I have <b>coded</b> the file Program.cs
29+
<br />
30+
<img src="images/docopt.net/csFiles/Program.cs.png" width="580" height="580" />
31+
<hr />
32+
33+
<br />
34+
I have <b>coded</b> the file Program.docopt.txt
35+
<br />
36+
<img src="images/docopt.net/csFiles/Program.docopt.txt.png" width="580" height="580" />
37+
<hr />
38+
<h3>And here are the <i>generated</i> files</h3>
39+
40+
<br />
41+
The file <i>generated</i> is ConsoleArgs.ProgramArguments.cs
42+
<br />
43+
<img src="images/docopt.net/generated/ConsoleArgs.ProgramArguments.cs.png" width="580" height="580" />
44+
45+
<p>
46+
You can download the code and this page as pdf from
47+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/docopt.net'>
48+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/docopt.net
49+
</a>
50+
</p>
51+
52+
53+
<p>
54+
You can see the whole list at
55+
<a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'>
56+
https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG
57+
</a>
58+
</p>
59+

v2/book/list.html

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
</head>
1818
<body>
1919
<h1>
20-
This is the list of 247 RSCG with examples =>
20+
This is the list of 248 RSCG with examples =>
2121
</h1>
2222

2323
<table >
@@ -1014,6 +1014,10 @@ <h1>
10141014
<td>247</td>
10151015
<td><a href="examples/BlazorOcticons.html">BlazorOcticons</a></td>
10161016
</tr>
1017+
<tr>
1018+
<td>248</td>
1019+
<td><a href="examples/docopt.net.html">docopt.net</a></td>
1020+
</tr>
10171021
</table>
10181022

10191023

v2/book/pandocHTML.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,7 @@ input-files:
261261
- examples/Monify.html
262262
- examples/Imposter.html
263263
- examples/BlazorOcticons.html
264+
- examples/docopt.net.html
264265

265266
# or you may use input-file: with a single value
266267
# defaults:

v2/rscg_examples_site/docs/RSCG-Examples/docopt.net.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -63,17 +63,17 @@ hypothetical program called Naval Fate:
6363
Naval Fate.
6464

6565
Usage:
66-
naval_fate.exe ship new <name>...
67-
naval_fate.exe ship <name> move <x> <y> [--speed=<kn>]
68-
naval_fate.exe ship shoot <x> <y>
69-
naval_fate.exe mine (set|remove) <x> <y> [--moored | --drifting]
66+
naval_fate.exe ship new \<name\>...
67+
naval_fate.exe ship \<name\> move \<x\> \<y\> [--speed=\<kn\>]
68+
naval_fate.exe ship shoot \<x\> \<y\>
69+
naval_fate.exe mine (set|remove) \<x\> \<y\> [--moored | --drifting]
7070
naval_fate.exe (-h | --help)
7171
naval_fate.exe --version
7272

7373
Options:
7474
-h --help Show this screen.
7575
--version Show version.
76-
--speed=<kn> Speed in knots [default: 10].
76+
--speed=\<kn\> Speed in knots [default: 10].
7777
--moored Moored (anchored) mine.
7878
--drifting Drifting mine.
7979

@@ -90,8 +90,8 @@ using DocoptNet;
9090
const string usage = @"Naval Fate.
9191
9292
Usage:
93-
naval_fate.exe ship new <name>...
94-
naval_fate.exe ship <name> move <x> <y> [--speed=<kn>]
93+
naval_fate.exe ship new \<name\>...
94+
naval_fate.exe ship \<name\> move <x> <y> [--speed=\<kn\>]
9595
naval_fate.exe ship shoot <x> <y>
9696
naval_fate.exe mine (set|remove) <x> <y> [--moored | --drifting]
9797
naval_fate.exe (-h | --help)
@@ -100,7 +100,7 @@ Usage:
100100
Options:
101101
-h --help Show this screen.
102102
--version Show version.
103-
--speed=<kn> Speed in knots [default: 10].
103+
--speed=\<kn\> Speed in knots [default: 10].
104104
--moored Moored (anchored) mine.
105105
--drifting Drifting mine.
106106
@@ -115,7 +115,7 @@ See the [documentation] for more examples and uses of the **docopt.net** API.
115115

116116
## Documentation
117117

118-
The documentation can be found online at <https://docopt.github.io/docopt.net/>.
118+
The documentation can be found online at https://docopt.github.io/docopt.net/.
119119

120120
## Installation
121121

@@ -125,8 +125,8 @@ Install [the package][nupkg] in a .NET project using:
125125

126126
## Copyright and License
127127

128-
- &copy; 2012-2014 Vladimir Keleshev <vladimir@keleshev.com>
129-
- &copy; 2013 Dinh Doan Van Bien <dinh@doanvanbien.com>
128+
- &copy; 2012-2014 Vladimir Keleshev vladimir@keleshev.com
129+
- &copy; 2013 Dinh Doan Van Bien dinh@doanvanbien.com
130130
- &copy; 2021 Atif Aziz
131131
- Portions &copy; .NET Foundation and Contributors
132132
- Portions &copy; West Wind Technologies, 2008
1.06 KB
Binary file not shown.

0 commit comments

Comments
 (0)