get
CommandLineInterface::get
Returns the parsed command line.
Declaration
virtual const std::unordered_map<std::string, std::vector<std::string>>& get() = 0;
Parameters
None.
Returns
The parsed command line used to launch the application.
The keys of the std::unordered_map are the arguments starting with “-”, with the values being everything that follows.
For example: ./NutshellEngine -test1 a b -test2 c
Will return:
Key |
Values |
---|---|
./NutshellEngine |
Empty |
-test1 |
a b |
-test2 |
c |