Changeset 981 for trunk/test


Ignore:
Timestamp:
Oct 22, 2007, 6:18:40 AM (15 years ago)
Author:
Peter
Message:

adding convenient class for help option

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/commandline_test.cc

    r980 r981  
    2525#include "yat/utility/OptionArg.h"
    2626#include "yat/utility/OptionFile.h"
     27#include "yat/utility/OptionHelp.h"
    2728#include "yat/utility/OptionSwitch.h"
    2829
     
    8485  CommandLine cmd;
    8586  OptionArg<std::string> dir(cmd, "d,dir", "output directory");
    86   OptionSwitch help(cmd, "h,help", "display this help and exit");
     87  OptionHelp help(cmd);
    8788  OptionSwitch target(cmd, "T,target", "treat DEST as a normal file", true);
    8889  OptionSwitch verbose(cmd, "v,verbose", "explain what is being done");
Note: See TracChangeset for help on using the changeset viewer.