© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•3y ago•
23 replies
Pixel

[System.Commandline] how to exit on --help

By default System.Commandline adds a --help which is nice but unlike the behavior of most POSIX programs the program does not exit when the --help option is added.

How would i replicate this behavior?
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

❔ Default command in System.CommandLine
C#CC# / help
3y ago
✅ System.CommandLine -> How to create a option without a parameter?
C#CC# / help
3y ago
System.CommandLine and injection of IOptions (not Option!) type
C#CC# / help
4y ago
✅ How to flush NLog on application exit with MEL
C#CC# / help
4y ago