diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-24 14:21:36 +0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-24 14:21:36 +0200 |
commit | 66577a1c64ac5d9f07aa2c207c96e13077576a4e (patch) | |
tree | a4c55d9b74df73cefe28eb2f26cdb6968f250e06 /src/nix/show-config.cc | |
parent | 9b63bb88c8873d192b8b01608e5d230817dd3375 (diff) |
Factor out --json
Diffstat (limited to 'src/nix/show-config.cc')
-rw-r--r-- | src/nix/show-config.cc | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/nix/show-config.cc b/src/nix/show-config.cc index aade2adea..e354891a8 100644 --- a/src/nix/show-config.cc +++ b/src/nix/show-config.cc @@ -7,13 +7,10 @@ using namespace nix; -struct CmdShowConfig : Command +struct CmdShowConfig : Command, MixJSON { - bool json = false; - CmdShowConfig() { - mkFlag(0, "json", "produce JSON output", &json); } std::string name() override |