Skip to content

Commit

Permalink
fix args
Browse files Browse the repository at this point in the history
  • Loading branch information
mbto committed Jul 13, 2021
1 parent 7388bae commit acc8aec
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ dependencies {
}

application {
mainClassName = "com.github.mbto.cutimage.Runner"
mainClassName = "com.github.mbto.cutimage.Application"

configure<JavaPluginConvention> {
sourceCompatibility = VERSION_1_8
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/github/mbto/cutimage/Args.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Args {

private Path resolvedOutputDirPath;

@Parameter(names = "-rs", description = "Enable/disable recursive walk in source directory", order = 3)
@Parameter(names = "-rs", arity = 1, description = "Enable/disable recursive walk in source directory", order = 3)
private boolean recursiveSourceDirEnabled;

@Parameter(names = "-x", description = "Count of pictures on axis X",
Expand Down
4 changes: 2 additions & 2 deletions src/test/java/com/github/mbto/cutimage/CutImageTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public void recursitveTest() throws Exception {
String[] args = {
"-s", testSettings.getSourceDirPathString(),
"-o", testSettings.getTargetDirPathString(),
"-rs",
"-rs", "true",
"-x", "6",
"-y", "3",
"-e", "jpg,jpeg,png,bmp,gif",
Expand All @@ -47,7 +47,7 @@ public void recursitveJpgTest() throws Exception {
String[] args = {
"-s", testSettings.getSourceDirPathString(),
"-o", testSettings.getTargetDirPathString(),
"-rs",
"-rs", "true",
"-x", "6",
"-y", "3",
"-e", "jpg",
Expand Down

0 comments on commit acc8aec

Please sign in to comment.