Skip to content

Commit

Permalink
Add support for the music-only flag
Browse files Browse the repository at this point in the history
  • Loading branch information
Senither committed Nov 7, 2018
1 parent 368ca3f commit 57bd855
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ plugins {
apply plugin: 'java'
apply plugin: 'idea'

version '0.1.5'
version '0.1.6'
group 'com.avairebot'
description = 'AvaIre Watchdog'
mainClassName = 'com.avairebot.watchdog.Main'
Expand Down
4 changes: 4 additions & 0 deletions src/main/java/com/avairebot/watchdog/ArgumentHandler.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ static void addApplicationArguments(CommandLine commandLine, List<String> list)
list.add("--version");
}

if (commandLine.hasOption("music")) {
list.add("--music");
}

if (commandLine.hasOption("no-colors")) {
list.add("--no-colors");
}
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/avairebot/watchdog/Main.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ public static void main(String[] args) throws IOException {
options.addOption(new Option("h", "help", false, "Displays this help menu."));
options.addOption(new Option("v", "version", false, "Displays the current version of the application."));
options.addOption(new Option("sc", "shard-count", true, "Sets the amount of shards the bot should start up."));
options.addOption(new Option("m", "music", false, "Enables music-only mode, disabling any feature that is not related to the music features."));
options.addOption(new Option("nocolor", "no-colors", false, "Disables colors for commands and AI actions in the terminal."));
options.addOption(new Option("d", "debug", false, "Enables debugging mode, this will log extra information to the terminal."));
options.addOption(new Option("jarg", "jvm-argument", true, "Sets the JVM arguments that the application should be started with."));
Expand Down

0 comments on commit 57bd855

Please sign in to comment.