Improve help command for linux/macos

This commit is contained in:
crschnick 2024-03-29 13:51:53 +00:00
parent e9b0a19509
commit 061dbe1cf3

View file

@ -12,12 +12,15 @@ public class Main {
return;
}
// Since this is not marked as a console application, it will not print anything when you run it in a console
// So sadly there can't be a help command
// if (args.length == 1 && args[0].equals("--help")) {
// System.out.println("HELP");
// return;
// }
// Since this is not marked as a console application, it will not print anything when you run it in a console on Windows
if (args.length == 1 && args[0].equals("--help")) {
System.out.println("""
The daemon executable xpiped does not accept any command-line arguments.
For a reference on what you can do from the CLI, take a look at the xpipe CLI executable instead.
""");
return;
}
OperationMode.init(args);
}