Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/CommandLineParser.cpp

    r192f6e r4f7f34e  
    4141void CommandLineParser::Parse()
    4242{
    43   po::store(po::command_line_parser(argc,argv).options(cmdline_options).options(visible).run(), vm);
     43  po::store(po::command_line_parser(argc,argv).options(cmdline_options).options(visible).positional(inputfile).run(), vm);
    4444  ifstream input;
    4545  input.open("example.cfg");
     
    5656{
    5757  // go through all arguments
     58  cout << Verbose(1) << "By default putting input into the sequence." << endl;
     59  // TODO: This may be bad, because const string "input" is destroyed at end of function
     60  SequenceOfActions.push_back("input");
    5861  for (int i=1;i<argc;i++) {
    5962    (cout << Verbose(1) << "Checking on " << argv[i] << endl);
Note: See TracChangeset for help on using the changeset viewer.