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

Formatting of the usage text #479

Open
ajtruckle opened this issue Sep 5, 2017 · 2 comments
Open

Formatting of the usage text #479

ajtruckle opened this issue Sep 5, 2017 · 2 comments

Comments

@ajtruckle
Copy link

Is it possible to have more control over how the usage is presented?

For example:

D:\My Programs\2017\OutlookCalIFConsole\OutlookCalIFConsole\bin\Release>outlookcalifconsole -p
OutlookCalIFConsole 1.0.0.0
Copyright c  2017

  -l, --list    Builds a list of available calendars. Eg: -l
                ".\CalendarList.xml"

  -m, --mode    Type of events to add to the calendar. Available modes: mwb.
                Eg: -m mwb

  -p, --path    Path to the events data file. Eg: -p ".\EventsToAdd.xml"

  --help        Display this help screen.```

How can I get it to line up the description nicer? They seem to arbitrarily wrap. I tried using `\n` but then it wrapped to start of the next line.
@fourpastmidnight
Copy link

Hmm, I was going to suggest just inheriting from HelpText, but it seems there are no virtual members to override! Perhaps there should be an interface or abstract base class from which we could inherit to provide our own formatting of help text.

I think the HelpText class does provide a mostly good set of defaults, but even I would like to change some details of the output that would be generated by this class.

@ajtruckle
Copy link
Author

Yes. The way it is makes it hard to explain the options for some of the switches neatly.

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

No branches or pull requests

2 participants