CommandLine: adds --json flag as a shortcut for enabling JSON output

This commit is contained in:
李通洲
2025-09-28 15:07:45 +08:00
parent adc25f4420
commit bd9744c27c
2 changed files with 37 additions and 20 deletions
+11
View File
@@ -63,6 +63,17 @@
},
"default": "default"
}
},
{
"long": "json",
"short": "j",
"arg": {
"type": "bool",
"default": false,
"optional": true
},
"desc": "Enable or disable JSON output",
"remark": "Shortcut for `--format json`"
}
],
"Config": [