-
-
Notifications
You must be signed in to change notification settings - Fork 6
clap.net #531
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
clap.net #531
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| # Just later | ||
|
|
||
| ## Latest Update : 2026-08-21 => 21 August 2026 | ||
| ## Latest Update : 2026-08-22 => 22 August 2026 | ||
|
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,36 @@ | ||
|
|
||
| { | ||
| "$schema": "https://aka.ms/codetour-schema", | ||
| "title": "Clap.Net", | ||
| "steps": | ||
| [ | ||
| { | ||
| "file": "rscg_examples/Clap.Net/src/ConsoleDemo/ConsoleDemo.csproj", | ||
| "description": "First, we add Nuget [Clap.Net](https://www.nuget.org/packages/Clap.Net/) in csproj ", | ||
| "pattern": "Clap.Net" | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Clap.Net/src/ConsoleDemo/CmdForSum.cs", | ||
| "description": "File CmdForSum.cs ", | ||
| "pattern": "this is the code" | ||
| } | ||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Clap.Net/src/ConsoleDemo/Program.cs", | ||
| "description": "File Program.cs \r\n>> dotnet run --project rscg_examples/Clap.Net/src/ConsoleDemo/ConsoleDemo.csproj ", | ||
| "pattern": "this is the code" | ||
| } | ||
|
|
||
|
|
||
| ,{ | ||
| "file": "rscg_examples/Clap.Net/src/ConsoleDemo/obj/GX/Clap.Net/Clap.Net.ClapGenerator/CmdForSum.ParseMethod.g.cs", | ||
| "description": "Generated File 1 from 1 : CmdForSum.ParseMethod.g.cs ", | ||
| "line": 1 | ||
| } | ||
|
|
||
| ], | ||
|
|
||
| "ref": "main" | ||
|
|
||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,59 @@ | ||
|
|
||
| <h1>RSCG nr 282 : Clap.Net</h1> | ||
|
|
||
| <h2>Info</h2> | ||
| Nuget : <a href="https://www.nuget.org/packages/Clap.Net/" target="_blank">https://www.nuget.org/packages/Clap.Net/</a> | ||
|
|
||
| <p>You can find more details at : <a href="https://github.com/simon-curtis/Clap.Net" target="_blank"> https://github.com/simon-curtis/Clap.Net</a></p> | ||
|
|
||
| <p>Author :Simon Curtis</p> | ||
|
|
||
| <p>Source: <a href="https://github.com/simon-curtis/Clap.Net" target="_blank">https://github.com/simon-curtis/Clap.Net</a> </p> | ||
|
|
||
| <h2>About</h2> | ||
|
|
||
| Command line arguments parsing | ||
|
|
||
| <h2> | ||
| How to use | ||
| </h2> | ||
| <h3> | ||
| Add reference to the <a href="https://www.nuget.org/packages/Clap.Net/" target="_blank">Clap.Net</a> in the csproj | ||
| </h3> | ||
| <img src="images/Clap.Net/ConsoleDemo.csproj.png" width="580" height="580" /> | ||
|
|
||
| <h3>This was for me the <b>starting</b> code</h3> | ||
|
|
||
| <br /> | ||
| I have <b>coded</b> the file Program.cs | ||
| <br /> | ||
| <img src="images/Clap.Net/csFiles/Program.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
|
|
||
| <br /> | ||
| I have <b>coded</b> the file CmdForSum.cs | ||
| <br /> | ||
| <img src="images/Clap.Net/csFiles/CmdForSum.cs.png" width="580" height="580" /> | ||
| <hr /> | ||
| <h3>And here are the <i>generated</i> files</h3> | ||
|
|
||
| <br /> | ||
| The file <i>generated</i> is CmdForSum.ParseMethod.g.cs | ||
| <br /> | ||
| <img src="images/Clap.Net/generated/CmdForSum.ParseMethod.g.cs.png" width="580" height="580" /> | ||
|
|
||
| <p> | ||
| You can download the code and this page as pdf from | ||
| <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/Clap.Net'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/Clap.Net | ||
| </a> | ||
| </p> | ||
|
|
||
|
|
||
| <p> | ||
| You can see the whole list at | ||
| <a target="_blank" href='https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG'> | ||
| https://ignatandrei.github.io/RSCG_Examples/v2/docs/List-of-RSCG | ||
| </a> | ||
| </p> | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -17,7 +17,7 @@ | |||||
| </head> | ||||||
| <body> | ||||||
| <h1> | ||||||
| This is the list of 281 RSCG with examples => | ||||||
| This is the list of 282 RSCG with examples => | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win Escape the HTMLHint reports this character as an unescaped special character. Replace Proposed fix-This is the list of 282 RSCG with examples =>
+This is the list of 282 RSCG with examples =>📝 Committable suggestion
Suggested change
🧰 Tools🪛 HTMLHint (1.9.2)[error] 20-20: Special characters must be escaped : [ > ]. (spec-char-escape) 🤖 Prompt for AI AgentsSource: Linters/SAST tools |
||||||
| </h1> | ||||||
|
|
||||||
| <table > | ||||||
|
|
@@ -1150,6 +1150,10 @@ <h1> | |||||
| <td>281</td> | ||||||
| <td><a href="examples/EndpointHelpers.html">EndpointHelpers</a></td> | ||||||
| </tr> | ||||||
| <tr> | ||||||
| <td>282</td> | ||||||
| <td><a href="examples/Clap.Net.html">Clap.Net</a></td> | ||||||
| </tr> | ||||||
| </table> | ||||||
|
|
||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| { | ||
| "generator":{ | ||
| "name":"Clap.Net", | ||
| "nuget":[ | ||
| "https://www.nuget.org/packages/Clap.Net/" | ||
| ], | ||
| "link":"https://github.com/simon-curtis/Clap.Net", | ||
| "author":"Simon Curtis", | ||
| "source":"https://github.com/simon-curtis/Clap.Net" | ||
| }, | ||
| "data":{ | ||
| "goodFor":["Command line arguments parsing"], | ||
| "csprojDemo":"ConsoleDemo.csproj", | ||
| "csFiles":["Program.cs","CmdForSum.cs"], | ||
| "excludeDirectoryGenerated":[""], | ||
| "includeAdditionalFiles":[""] | ||
| }, | ||
| "links":{ | ||
| "blog":"", | ||
| "video":"" | ||
| } | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| Package Description | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win Replace the placeholder package description.
🤖 Prompt for AI Agents |
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
📐 Maintainability & Code Quality | 🟡 Minor | ⚡ Quick win
Add alternative text to the code screenshots.
These images contain example code and are informative. Add concise
alttext to each<img>element so screen-reader users can identify the content.Also applies to: 30-30, 36-36, 43-43
🤖 Prompt for AI Agents