Ignore:
Timestamp:
Nov 19, 2008, 5:20:49 PM (13 years ago)
Author:
Peter
Message:

move the setting of print_arg from constructor to function in order to allow usage also in daughter classes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/commandline_test.cc

    r1629 r1632  
    7777  OptionHelp help(cmd);
    7878  OptionArg<std::string> target(cmd, "T,target", "treat DEST as a normal file",
    79                                 true, "TARGET");
     79                                true);
     80  target.print_arg("=TARGET");
    8081  OptionSwitch verbose(cmd, "v,verbose", "explain what is being done");
    8182  OptionSwitch version(cmd, "version", "output version and exit");
Note: See TracChangeset for help on using the changeset viewer.