enum elements in helptext?

Dec 19, 2012 at 6:22 PM

Is there a way to have the autobuilt helptext list the different elements of an enum option?

 

  -l, --logmode    The type of logging to use.
				console: Log directly back to console.
				database: Log to database.
				file: Log to file.

 

Or at the least,

 

-l, --logmode	The type of logging to use.
		Available options: console, database, file

 

Excellent library, by the way!! :)

 

Coordinator
Feb 24, 2013 at 4:47 AM
Glad you like my work and the one of contributors.

The wiki is very up to date and recently update in the help screen topic.

Take a look:

https://github.com/gsscoder/commandline/wiki/Display-A-Help-Screen

Everything is customizable. AutoBuild work in data-driven way. Try pass to it a different error formatting lambda.

Did this help you? If not let me know.

Giacomo
Oct 27, 2014 at 9:31 PM
mcassidy: Did you by any chance figure out how to display enum values in help text for option info? I can't figure out how to do this. Checked the wiki, but did not see anything obvious. A sample would be really helpful.