Comments (9)
Comment by gsscoder
Thursday Sep 24, 2015 at 13:13 GMT
- Is it possible to suppress displaying version/copyright stuff (I can display them myself, thank you very much) but retain the rest?
You can handle help screen completely on your own, just create a parser with a ParserSettings
that lacks a value for HelpWriter
property.
- If I remove AssemblyCopyright attribute CommandLine just crashes. I'm not sure if it's intended behaviour?
- If with crash you mean an exception not generated by the library, it's always something that should be fixed.
- In any case if you leave the automatic help generation, you can't remove
AssemblyCopyright
, but if you generate the help screen manually everything will be under your control.
But probably you want just use the automatic generation and tell it to not print copyright info removing AssemblyCopyright
? Am I right?
from commandline.
Comment by AndrewSav
Thursday Sep 24, 2015 at 19:39 GMT
But probably you want just use the automatic generation and tell it to not print copyright info removing AssemblyCopyright? Am I right?
Yes! As I said, I want it to print the help, as it is doing very good job with that. It would be a downer to re-implement it again, when the library already implements it. I just want to suppress displaying version/copyright but retain the rest of the help info generated. Is this possible? I might be reading it wrong but it seems that your response does not address this question?
from commandline.
Comment by gsscoder
Monday Oct 05, 2015 at 22:41 GMT
📎 Please read: #250. Thanks for collaboration and patience! 😅
Giacomo
P.S.: valid only for me, if a main contrib. is available he's obviously free to support devs/users of the project.
from commandline.
Comment by AndrewSav
Monday Apr 18, 2016 at 09:45 GMT
Just pinging, in case there is a status update. Cheers!
from commandline.
Comment by nemec
Monday Apr 18, 2016 at 17:54 GMT
Nothing yet. @gsscoder is tied up in work and I don't have time to actively develop a fix. If you want to dig in, I think the best approach would be to expose the AutoBuild pipeline (which currently depends on internal types, see #286 #281) and add a flag to the constructor allowing you to turn on/off version and copyright.
from commandline.
Comment by ChristianIvicevic
Saturday Sep 16, 2017 at 10:46 GMT
I noticed this behavior and reported it in #481 and it's a shame nothing has been introduced to remove the default version/copyright output. Since this hasn't been fixed in over two years I will be looking into alternative libraries.
from commandline.
Comment by AndrewSav
Saturday Sep 16, 2017 at 21:20 GMT
@ChristianIvicevic at this stage this is the most reasonable thing to do.
from commandline.
Comment by ChristianIvicevic
Saturday Sep 16, 2017 at 21:22 GMT
@AndrewSav I moved to System.CommandLine now. Unfortunately it is dependant on NETStandard which downloads 100 DLLs into the binary folder but the library itself is pretty nice.
from commandline.
Resolved
from commandline.
Related Issues (20)
- How to output all commands and options through -- help HOT 1
- GetoptMode = true suppresses help.
- Looking to parse "default" value after initializing object with factory HOT 1
- Option are displayed in lowercase in help HOT 2
- Trying to use custom type for options: "is defined with a bad format." HOT 1
- Does Command Line Parser affect the program execution? HOT 1
- Parallel.ForEachAsync not working in Debug mode within the WithParsed method HOT 2
- Increase the number of verbs supported HOT 2
- bool value is not support HOT 3
- Change "Command Line Grammar" wiki page
- Backslash parsing problem in argument. HOT 1
- `VerbAttribute` has unnecessary breaking changes between 2.8.0 and 2.9.1 HOT 1
- Bad format doesn't contain a lot of info HOT 2
- Multi instance setting ignored when default verb is parsed.
- How to get help information as a variable? HOT 1
- Detecting switches HOT 1
- Handling the CS8618 warning (Non-nullable property) HOT 1
- Is the package being maintained? HOT 1
- VerbAttribute violates CS3016 code inspection
- Code crashes without any concrete error and no help documents HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from commandline.