Factor out --json

This commit is contained in:
Eelco Dolstra 2017-04-24 14:21:36 +02:00
parent 9b63bb88c8
commit 66577a1c64
No known key found for this signature in database
GPG key ID: 8170B4726D7198DE
3 changed files with 14 additions and 8 deletions

View file

@ -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);
}
};
}