diff options
Diffstat (limited to 'src/libmain/common-args.hh')
-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 2c0d71edd..a4de3dccf 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); + } +}; + } |