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");
/**
if (inputPatternParameter.isParameterSpecified())
options.getInputPatterns().addAll(inputPatternParameter.getValue());
- options.setForPortablePlayer(forPortableParameter
- .isParameterSpecified());
+ options.setForPortablePlayer(forPortableParameter.isParameterSpecified());
if (videoBitrateParameter.isParameterSpecified())
options.setVideoBitrate(videoBitrateParameter.getValue());