From: Svjatoslav Agejenko Date: Sun, 1 Nov 2015 19:45:02 +0000 (+0200) Subject: fixed typo X-Git-Tag: meviz-1.0~17 X-Git-Url: http://www2.svjatoslav.eu/gitweb/?a=commitdiff_plain;h=ebf93054aaee0c329075a98c02e5cbc90013335a;p=meviz.git fixed typo reformatted code --- 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());