diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2020-05-04 22:40:19 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2020-05-04 22:40:19 +0200 |
commit | a721a0b1140bf489d645f5d85737acafc1c57c65 (patch) | |
tree | f4b7df80fccc95b46fd3e8419375b563b466cfa4 /src/nix/show-derivation.cc | |
parent | e9f10beed1a30fe80b315a9de4c4c2ab11527db8 (diff) |
Flag: Use designated initializers
Diffstat (limited to 'src/nix/show-derivation.cc')
-rw-r--r-- | src/nix/show-derivation.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nix/show-derivation.cc b/src/nix/show-derivation.cc index 0ede7b468..b6f24599f 100644 --- a/src/nix/show-derivation.cc +++ b/src/nix/show-derivation.cc @@ -15,11 +15,12 @@ struct CmdShowDerivation : InstallablesCommand CmdShowDerivation() { - mkFlag() - .longName("recursive") - .shortName('r') - .description("include the dependencies of the specified derivations") - .set(&recursive, true); + addFlag({ + .longName = "recursive", + .shortName = 'r', + .description = "include the dependencies of the specified derivations", + .handler = {&recursive, true} + }); } std::string description() override |