From ebf93054aaee0c329075a98c02e5cbc90013335a Mon Sep 17 00:00:00 2001 From: Svjatoslav Agejenko Date: Sun, 1 Nov 2015 21:45:02 +0200 Subject: [PATCH] fixed typo reformatted code --- .../meviz/encoder/CommandlineHandler.java | 35 +++++++------------ 1 file changed, 12 insertions(+), 23 deletions(-) diff --git a/src/main/java/eu/svjatoslav/meviz/encoder/CommandlineHandler.java b/src/main/java/eu/svjatoslav/meviz/encoder/CommandlineHandler.java index 5a6ecbd..e83b4b8 100755 --- a/src/main/java/eu/svjatoslav/meviz/encoder/CommandlineHandler.java +++ b/src/main/java/eu/svjatoslav/meviz/encoder/CommandlineHandler.java @@ -19,43 +19,33 @@ public class CommandlineHandler { Parser parser = new Parser(); - StringParameters outputFormatParameter = parser - .add(new StringParameters("Encoding output format.")) + StringParameters outputFormatParameter = parser.add(new StringParameters("Encoding output format.")) .addAliases("-o", "--output-format").setMandatory(); - IntegerParameter targetFramerate = parser.add(new IntegerParameter( - "Target framerate.").addAliases("-f", "--target-frame")); + IntegerParameter targetFramerate = parser + .add(new IntegerParameter("Target framerate.").addAliases("-f", "--target-framerate")); - NullParameter deinterlaceParameter = parser.add( - new NullParameter("Deinterlace video.")).addAliases("-d", + NullParameter deinterlaceParameter = parser.add(new NullParameter("Deinterlace video.")).addAliases("-d", "--deinterlace"); - NullParameter testParameter = parser.add( - new NullParameter("Simulate file encoding.")).addAliases("-t", - "--test"); + NullParameter testParameter = parser.add(new NullParameter("Simulate file encoding.")).addAliases("-t", "--test"); - NullParameter recursiveParameter = parser.add( - new NullParameter("Enable recursive mode.")).addAliases("-r", + NullParameter recursiveParameter = parser.add(new NullParameter("Enable recursive mode.")).addAliases("-r", "--recursive"); - NullParameter forPortableParameter = parser.add( - new NullParameter("Encode for portable player.")).addAliases("-p", + NullParameter forPortableParameter = parser.add(new NullParameter("Encode for portable player.")).addAliases("-p", "--portable"); - StringParameters inputPatternParameter = parser - .add(new StringParameters("File input pattern.")) + StringParameters inputPatternParameter = parser.add(new StringParameters("File input pattern.")) .addAliases("-i", "--input-pattern").setMandatory(); - DirectoryParameter workingDirectoryParameter = parser - .add(new DirectoryParameter("Working directory.")) + DirectoryParameter workingDirectoryParameter = parser.add(new DirectoryParameter("Working directory.")) .addAliases("-w", "--working-directory").mustExist(); - BitrateParameter videoBitrateParameter = parser.add( - new BitrateParameter("Video bitrate")).addAliases("-v", + BitrateParameter videoBitrateParameter = parser.add(new BitrateParameter("Video bitrate")).addAliases("-v", "--video-bitrate"); - BitrateParameter audioBitrateParameter = parser.add( - new BitrateParameter("Audio bitrate")).addAliases("-a", + BitrateParameter audioBitrateParameter = parser.add(new BitrateParameter("Audio bitrate")).addAliases("-a", "--audio-bitrate"); /** @@ -87,8 +77,7 @@ public class CommandlineHandler { if (inputPatternParameter.isParameterSpecified()) options.getInputPatterns().addAll(inputPatternParameter.getValue()); - options.setForPortablePlayer(forPortableParameter - .isParameterSpecified()); + options.setForPortablePlayer(forPortableParameter.isParameterSpecified()); if (videoBitrateParameter.isParameterSpecified()) options.setVideoBitrate(videoBitrateParameter.getValue()); -- 2.20.1