Changeset 599


Ignore:
Timestamp:
Aug 29, 2006, 3:31:59 AM (15 years ago)
Author:
Peter
Message:

updated corresponding test... well it's not a test it's more of an example.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/test/commandline_test.cc

    r594 r599  
    1313
    1414  utility::CommandLine cmd;
    15   cmd.add_parameter("n", utility::Option::int_arg,
     15  cmd.set_general_description("test program for CommandLine class");
     16  cmd.add_parameter('n', utility::Option::int_arg,
    1617                    "example of parameter taking an integer");
    17   cmd.add_parameter("v",utility::Option::no_arg, "explain what is being done");
    18   cmd.add_parameter("t", "target", utility::Option::string_arg);
     18  cmd.add_parameter('v',utility::Option::no_arg, "explain what is being done");
     19  cmd.add_parameter('t', "target", utility::Option::string_arg);
    1920  cmd.add_parameter("version",utility::Option::no_arg,
    2021                    "output version infomation and exit");
Note: See TracChangeset for help on using the changeset viewer.