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:
parent
c502119fd3
commit
c664e68b87
3 changed files with 14 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue