Removes an option from the needs list of this subcommand
| 5929 | |
| 5930 | /// Removes an option from the needs list of this subcommand |
| 5931 | bool remove_needs(Option *opt) { |
| 5932 | auto iterator = std::find(std::begin(need_options_), std::end(need_options_), opt); |
| 5933 | if (iterator == std::end(need_options_)) { |
| 5934 | return false; |
| 5935 | } |
| 5936 | need_options_.erase(iterator); |
| 5937 | return true; |
| 5938 | } |
| 5939 | |
| 5940 | /// Removes a subcommand from the needs list of this subcommand |
| 5941 | bool remove_needs(App *app) { |
no test coverage detected