Ignore:
Timestamp:
May 15, 2010, 5:56:57 PM (16 years ago)
Author:
Frederik Heber <heber@…>
Children:
356180, 494bf6
Parents:
dbec4e
git-author:
Frederik Heber <heber@…> (05/14/10 20:14:27)
git-committer:
Frederik Heber <heber@…> (05/15/10 17:56:57)
Message:

Added all commands defined in ParseCommandLineOptions() as Actions.

  • Actions are not yet used, except verbose, version and help.
  • Files are present and included in Makefile.am
  • not unit tests written so far
  • no action has been tested so far (except for MapOfActions)
  • structure introduced to to transition from ParseCommandLineOptions to actions.
  • program name and config file are fixed arguments.

Signed-off-by: Frederik Heber <heber@…>

File:
1 edited

Legend:

Unmodified
Added
Removed
  • molecuilder/src/CommandLineParser.cpp

    rdbec4e r2e06c4  
    3636void CommandLineParser::Parse()
    3737{
    38   po::store(po::command_line_parser(argc,argv).options(cmdline_options).run(), vm);
    39   po::store(po::command_line_parser(argc,argv).options(visible).run(), vm);
     38  po::store(po::command_line_parser(argc,argv).options(cmdline_options).options(visible).positional(inputfile).run(), vm);
    4039  ifstream input;
    4140  input.open("example.cfg");
     
    4544  po::notify(vm);
    4645}
     46
     47
    4748
    4849/** States whether there are command line arguments.
Note: See TracChangeset for help on using the changeset viewer.