diff options
author | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-02 18:25:32 +0000 |
---|---|---|
committer | John Ericson <John.Ericson@Obsidian.Systems> | 2020-06-02 18:25:32 +0000 |
commit | c664e68b87a3e9e41c4471276886da71793b2d85 (patch) | |
tree | 4588e89a54039765077433eb4406953b008e4872 /src/nix/hash.cc | |
parent | c502119fd3b9673e966d5c34ec42cbe18baa17b9 (diff) |
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.
Diffstat (limited to 'src/nix/hash.cc')
-rw-r--r-- | src/nix/hash.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nix/hash.cc b/src/nix/hash.cc index 0e24bbaed..d1b5cca72 100644 --- a/src/nix/hash.cc +++ b/src/nix/hash.cc @@ -84,7 +84,7 @@ struct CmdToBase : Command CmdToBase(Base base) : base(base) { - addFlag(Flag::mkHashTypeFlag("type", &*ht)); + addFlag(Flag::mkHashTypeOptFlag("type", &ht)); expectArgs("strings", &args); } |