Skip to content

Commit 0544cc1

Browse files
committed
feat: running without arguments now defaults to interactive search
1 parent 978b208 commit 0544cc1

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/org/codejive/jpm/Main.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,11 @@ private static void printStats(SyncStats stats) {
348348
* @param args The command line arguments.
349349
*/
350350
public static void main(String... args) {
351+
if (args.length == 0) {
352+
System.err.println(
353+
"Running 'jpm search --interactive', try 'jpm --help' for more options");
354+
args = new String[] {"search", "--interactive"};
355+
}
351356
new CommandLine(new Main()).execute(args);
352357
}
353358
}

0 commit comments

Comments
 (0)