Closed astrohart closed 3 years ago
long commands are --, not -
try using -- for each command
Yes, --root="C:\temp" --npsv="6.9.5" --opsv="6.9.6"
worked.
Suggestion Make the GitHub Pages documentation more descriptive of this requirement. I am a senior technologist with deep experience in programming, but if I could not understand that long options are always required to begin with --
then perhaps it may be unclear to others.
Suggestion Make the error message during the exception more descriptive of the need to use --
for long parameter names.
i dont use .Required, but rather check for mandatory options being set. this way you can show the entire help screen. i also add a footer showing example commands with my tools that use this library.
something to consider
https://github.com/EricZimmerman/evtx/blob/master/EvtxECmd/Program.cs#L192
Thanks for the tip! Really appreciate it!
Hi,
My project has the FluentCommandLineParser NuGet package installed. It's a .NET Framework 4.8 Console Application running on Windows 10 (latest build) with VS 2019 Enterprise.
Here's my
Program.cs
:When I click the Project menu and then click Properties, click the Debug tab, and then enter
-root="C:\temp" -npsv="6.9.5" -opsv="6.9.6"
for the command-line arguments to pass to the executable when I hit
F5
, which I think are the correct format for the arguments, then I get:I am not sure why I am receiving these errors. I followed along with your documentation and I think I am coding it correctly. Please assist with what I am doing wrong. I think I have written the code correctly. I also think I have written the sample command-line arguments correctly as well.
Thank you in advance.