Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.2 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Compilers

    CLI 1.1.0

    Download button

    No screenshots available
    Downloads: 500  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Code Synthesis Tools | More programs
    MIT/X Consortium Lic... / FREE
    December 15th, 2009, 15:50 GMT
    ROOT / Programming / Compilers

     Read user reviews (0)  Refer to a friend  Subscribe

    CLI description

    Command Line Interface Definition Language for C++

    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

    Product's homepage

      


    TAGS:

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

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM