diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2021-01-27 12:06:03 +0100 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2021-01-27 12:06:03 +0100 |
commit | 8e758d402ba1045c7b8273f8cb1d6d8d917ca52b (patch) | |
tree | 04c5bc22912b684a41cd4cfdd5c895127ce339a4 /src/nix/eval.cc | |
parent | f15f0b8e83051cd95dacb2784b004c8272957f30 (diff) |
Remove mkFlag()
Diffstat (limited to 'src/nix/eval.cc')
-rw-r--r-- | src/nix/eval.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nix/eval.cc b/src/nix/eval.cc index b5049ac65..65d61e005 100644 --- a/src/nix/eval.cc +++ b/src/nix/eval.cc @@ -18,7 +18,11 @@ struct CmdEval : MixJSON, InstallableCommand CmdEval() { - mkFlag(0, "raw", "Print strings without quotes or escaping.", &raw); + addFlag({ + .longName = "raw", + .description = "Print strings without quotes or escaping.", + .handler = {&raw, true}, + }); addFlag({ .longName = "apply", |