~skeeto/public-inbox

Re: Conventions for Command Line Options

Daniel Krajzewicz
Details
Message ID
<287a9f50-294b-ce83-69bf-a4ad2888a593@krajzewicz.de>
DKIM signature
pass
Download raw message
Dear Chris,

yep, it's some kind of an advertisement, but for an open source project.

I made some experience with parsing command line options when working on 
an open source traffic simulation named SUMO (http://sumo.dlr.de) and 
decided to re-code the options library. It works similar to Python's 
argparse library - the options are defined first, then you may retrieve 
the values type-aware.

You may find more information on my blog pages: 
http://krajzewicz.de/blog/command-line-options.php

The library itself is hosted on github:
- cpp-version: https://github.com/dkrajzew/optionslib_cpp
- java-version: https://github.com/dkrajzew/optionslib_java

Sincerely,
Daniel
Export thread (mbox)