* @brief Verify that the command line arguments belong to the list of allowed arguments. * * @return `true` if all arguments are allowed, `false` otherwise. */
| 3941 | * @return `true` if all arguments are allowed, `false` otherwise. |
| 3942 | */ |
| 3943 | [[nodiscard]] bool verify() const |
| 3944 | { |
| 3945 | return std::all_of(args.begin(), args.end(), |
| 3946 | [this](const std::string_view arg) |
| 3947 | { |
| 3948 | return allowed.count(arg) == 1; |
| 3949 | }); |
| 3950 | } |
| 3951 | |
| 3952 | private: |
| 3953 | struct arg_spec |