/*
- Copyright (C) 2015-2020 AsamK and contributors
+ Copyright (C) 2015-2021 AsamK and contributors
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
public class Main {
- final static Logger logger = LoggerFactory.getLogger(Main.class);
+ private final static Logger logger = LoggerFactory.getLogger(Main.class);
public static void main(String[] args) {
installSecurityProviderWorkaround();
mut.addArgument("--dbus").help("Make request via user dbus.").action(Arguments.storeTrue());
mut.addArgument("--dbus-system").help("Make request via system dbus.").action(Arguments.storeTrue());
+ parser.addArgument("-o", "--output").help("Choose to output in plain text or JSON")
+ .choices("plain-text", "json").setDefault("plain-text");
+
Subparsers subparsers = parser.addSubparsers()
.title("subcommands")
.dest("command")