1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-25 10:41:16 +02:00

Fix to-base --type handler to correctly set std::optional flag

Now that we have a separate flag function, also describe why it is
optional.
This commit is contained in:
John Ericson 2020-06-02 18:25:32 +00:00
parent c502119fd3
commit c664e68b87
3 changed files with 14 additions and 1 deletions

View file

@ -85,6 +85,7 @@ protected:
Handler handler;
static Flag mkHashTypeFlag(std::string && longName, HashType * ht);
static Flag mkHashTypeOptFlag(std::string && longName, std::optional<HashType> * oht);
};
std::map<std::string, Flag::ptr> longFlags;