Rename Cli class to App

This commit is contained in:
AsamK 2021-01-16 21:20:12 +01:00
parent a2debdb234
commit dd4225dcb1
2 changed files with 5 additions and 5 deletions

View file

@ -37,9 +37,9 @@ import java.util.Map;
import java.util.Objects; import java.util.Objects;
import java.util.stream.Collectors; import java.util.stream.Collectors;
public class Cli { public class App {
private final static Logger logger = LoggerFactory.getLogger(Cli.class); private final static Logger logger = LoggerFactory.getLogger(App.class);
private final Namespace ns; private final Namespace ns;
@ -79,7 +79,7 @@ public class Cli {
return parser; return parser;
} }
public Cli(final Namespace ns) { public App(final Namespace ns) {
this.ns = ns; this.ns = ns;
} }

View file

@ -36,11 +36,11 @@ public class Main {
// Configuring the logger needs to happen before any logger is initialized // Configuring the logger needs to happen before any logger is initialized
configureLogging(isVerbose(args)); configureLogging(isVerbose(args));
ArgumentParser parser = Cli.buildArgumentParser(); ArgumentParser parser = App.buildArgumentParser();
Namespace ns = parser.parseArgsOrFail(args); Namespace ns = parser.parseArgsOrFail(args);
int res = new Cli(ns).init(); int res = new App(ns).init();
System.exit(res); System.exit(res);
} }