commit | f306df3b175966613dd76d2653b06d815b06165e | [log] [tgz] |
---|---|---|
author | Andrew Lunn <andrew@lunn.ch> | Sun Jul 05 19:54:50 2020 +0200 |
committer | Michal Kubecek <mkubecek@suse.cz> | Sun Jul 05 23:51:16 2020 +0200 |
tree | 9ff230452649d494fc03b70938cc79768ce081a5 | |
parent | ac2f0dcdcd301a5dc95cb9efa5ef8380597fb73a [diff] |
Add --json command line argument parsing Allow --json to be passed as an option to select JSON output. The option is handled in the same way as --debug, setting a variable in the command context, which can then later be used per option to select JSON outputters. Signed-off-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: Michal Kubecek <mkubecek@suse.cz>