Check to see if given subcommand was selected
| 5854 | |
| 5855 | /// Check to see if given subcommand was selected |
| 5856 | bool got_subcommand(const App *subcom) const { |
| 5857 | // get subcom needed to verify that this was a real subcommand |
| 5858 | return get_subcommand(subcom)->parsed_ > 0; |
| 5859 | } |
| 5860 | |
| 5861 | /// Check with name instead of pointer to see if subcommand was selected |
| 5862 | bool got_subcommand(std::string subcommand_name) const { return get_subcommand(subcommand_name)->parsed_ > 0; } |