Skip to content

Commit

Permalink
Use regular camelCase for argument objects
Browse files Browse the repository at this point in the history
The uppercase naming didn't really make sense as they're not constants.
  • Loading branch information
Gama11 committed Aug 30, 2017
1 parent 8c252d9 commit d7676e1
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions src/rv/Viewer.java
Original file line number Diff line number Diff line change
Expand Up @@ -220,16 +220,16 @@ public Viewer(Configuration config, GLCapabilities caps, String[] args)

private void parseArgs(String[] args)
{
StringArgument LOG_FILE = new StringArgument("logFile", null);
BooleanArgument LOG_MODE = new BooleanArgument("logMode");
StringArgument SERVER_HOST = new StringArgument("serverHost", null);
IntegerArgument SERVER_PORT = new IntegerArgument("serverPort", null, 1, 65535);
StringArgument DRAWING_FILTER = new StringArgument("drawingFilter", ".*");

handleLogModeArgs(LOG_FILE.parse(args), LOG_MODE.parse(args));
config.networking.overrideServerHost(SERVER_HOST.parse(args));
config.networking.overrideServerPort(SERVER_PORT.parse(args));
drawingFilter = DRAWING_FILTER.parse(args);
StringArgument logFileArgument = new StringArgument("logFile", null);
BooleanArgument logModeArgument = new BooleanArgument("logMode");
StringArgument serverHostArgument = new StringArgument("serverHost", null);
IntegerArgument serverPortArgument = new IntegerArgument("serverPort", null, 1, 65535);
StringArgument drawingFilterArgument = new StringArgument("drawingFilter", ".*");

handleLogModeArgs(logFileArgument.parse(args), logModeArgument.parse(args));
config.networking.overrideServerHost(serverHostArgument.parse(args));
config.networking.overrideServerPort(serverPortArgument.parse(args));
drawingFilter = drawingFilterArgument.parse(args);
Argument.endParse(args);
}

Expand Down

0 comments on commit d7676e1

Please sign in to comment.