fixed typo
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 1 Nov 2015 19:45:02 +0000 (21:45 +0200)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Sun, 1 Nov 2015 19:45:02 +0000 (21:45 +0200)
reformatted code

src/main/java/eu/svjatoslav/meviz/encoder/CommandlineHandler.java

index 5a6ecbd..e83b4b8 100755 (executable)
@@ -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());