diff options
author | Eelco Dolstra <edolstra@gmail.com> | 2017-04-24T12·21+0200 |
---|---|---|
committer | Eelco Dolstra <edolstra@gmail.com> | 2017-04-24T12·21+0200 |
commit | 66577a1c64ac5d9f07aa2c207c96e13077576a4e (patch) | |
tree | a4c55d9b74df73cefe28eb2f26cdb6968f250e06 /src/libmain | |
parent | 9b63bb88c8873d192b8b01608e5d230817dd3375 (diff) |
Factor out --json
Diffstat (limited to 'src/libmain')
-rw-r--r-- | src/libmain/common-args.hh | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/libmain/common-args.hh b/src/libmain/common-args.hh index 2c0d71edd815..a4de3dccf0a5 100644 --- a/src/libmain/common-args.hh +++ b/src/libmain/common-args.hh @@ -12,7 +12,7 @@ struct MixCommonArgs : virtual Args struct MixDryRun : virtual Args { - bool dryRun; + bool dryRun = false; MixDryRun() { @@ -20,4 +20,14 @@ struct MixDryRun : virtual Args } }; +struct MixJSON : virtual Args +{ + bool json = false; + + MixJSON() + { + mkFlag(0, "json", "produce JSON output", &json); + } +}; + } |