Skip to content
Discussion options

You must be logged in to vote

I do mention it in the README, but test/InitOb.nim may also be helpful to get started. The essential logic of initFromCL is to generate an object initializer from any command-line like data (seq[string], basically). I'd bet you can adapt that to your purposes.

If you want a really worked out example you could look at how lc uses cligen. lc actually merges settings from config files, the command line and dynamically from per-listed-directory saved dot files called ".lc" (it has to scan a directory anyway - it just loads that if it notices it). This latter feature allows Unix to be sort of smart like Windows remembering the last "format" for folder contents..It's more manual but also more p…

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by c-blake
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants