00001 #ifdef HAVE_CONFIG_H
00002 #include <config.h>
00003 #endif
00004
00005 #include "Argument_helper.h"
00006
00007 #include <iostream>
00008
00009 std::string input_filename, output_filename;
00010 int iv, oiv, niv;
00011
00012 int main(int argc, const char* argv[]){
00013 dsr::Argument_helper ah;
00014 ah.new_string("input_filename.type", "The name of the input file",
00015 input_filename);
00016 ah.new_string("output_filename.type", "The name of the output file",
00017 output_filename);
00018 ah.new_int("count", "Some integer", iv);
00019 ah.new_optional_int("opt_count", "Some optional integer", oiv);
00020 ah.new_named_int('i', "integer", "named_int", "Some named integer", niv);
00021 ARGUMENT_HELPER_BASICS(ah);
00022 ah.set_description("A program");
00023 ah.set_author("Daniel Russel, drussel@graphics.stanford.edu");
00024
00025 ah.process(argc, argv);
00026
00027
00028 ah.write_values(std::cout);
00029
00030 return 0;
00031 }