Wednesday, January 25, 2012

Parser for command line parameters in Java/C/C++/Python/shell

My question on stackoverflow:


I am looking for a library to parse command-line parameters that would work identically in Java, C/C++, Python and (preferably) shell. By "identical" I mean (1) have exactly the same rules for parsing of the parameters in all three languages, (2) use the same configuration files or have similar API to specify the parameters, (3) have similar APIs to access the values of the parameters.
I've always used getopt in C and Apache CLI in Java but it would be nice to use the same specification for the parameters across multiple languages.
Post a Comment