Factor out --json
This commit is contained in:
parent
9b63bb88c8
commit
66577a1c64
3 changed files with 14 additions and 8 deletions
|
@ -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);
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue