Changeset 1480 for trunk/yat/utility


Ignore:
Timestamp:
Sep 9, 2008, 1:24:37 PM (13 years ago)
Author:
Peter
Message:

adding function to get free args - refs #413

Location:
trunk/yat/utility
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/CommandLine.cc

    r1468 r1480  
    8989  {
    9090    free_arg_max_ = n;
     91  }
     92
     93
     94  const std::vector<std::string>& CommandLine::free_args(void) const
     95  {
     96    return free_arg_;
    9197  }
    9298
  • trunk/yat/utility/CommandLine.h

    r1468 r1480  
    115115
    116116    /**
     117       \brief Arguments not associated with an Option
     118
     119       \see allow_free_args(size_t n)
     120    */
     121    const std::vector<std::string>& free_args(void) const;
     122
     123    /**
    117124       \brief parse the commandline
    118125
Note: See TracChangeset for help on using the changeset viewer.