Skip to content
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

Auto help question #242

Open
AndrewSav opened this issue Sep 22, 2015 · 8 comments
Open

Auto help question #242

AndrewSav opened this issue Sep 22, 2015 · 8 comments

Comments

@AndrewSav
Copy link

This is regarding 2.0

  1. Is it possible to suppress displaying version/copyright stuff (I can display them myself, thank you very much) but retain the rest?
  2. If I remove AssemblyCopyright attribute CommandLine just crashes. I'm not sure if it's intended behaviour?
@gsscoder
Copy link
Owner

  1. 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.

  1. 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?

@AndrewSav
Copy link
Author

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?

@gsscoder
Copy link
Owner

gsscoder commented Oct 5, 2015

📎 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.

@AndrewSav
Copy link
Author

Just pinging, in case there is a status update. Cheers!

@nemec
Copy link
Collaborator

nemec commented Apr 18, 2016

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.

@ghost
Copy link

ghost commented Sep 16, 2017

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.

@AndrewSav
Copy link
Author

@ChristianIvicevic at this stage this is the most reasonable thing to do.

@ghost
Copy link

ghost commented Sep 16, 2017

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants