CLI 1.1.0

Command Line Interface Definition Language for C++

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
MIT/X Consortium License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Code Synthesis Tools
HOMEPAGE:
www.codesynthesis.com
CATEGORY:
ROOT \ Programming \ Compilers
CLI is a domain-specific language (DSL) for defining command-line interfaces of C++ programs. It allows you to describe the options that your program supports, their types, and default values. For example:

include < string >;

class options
{
 bool --help;
 std::string --name = "example";
 unsigned int --level | -l = 5;
};

 
CLI definitions are automatically translated to C++ classes using the CLI compiler. These classes implement parsing of the command line arguments and provide a convenient and type-safe interface for accessing the extracted data. For example:

int main (int argc, char* argv[])
{
 options o (argc, argv);

 if (o.help ())
 print_usage ();

 if (o.level () > 4)
 cerr

Last updated on December 15th, 2009

#command-line interface #definition language #domain-specific language #command-line #interface #definition #domain-specific

Add your review!

SUBMIT