Closed heyhippari closed 6 years ago
The app should simply return an help page if no argument is passed
The issue here is that ripme considers no args being passed as GUI mode
The only interactive mode ripme has is the GUI, so why would you want to run it from a console with no args?
It'd be nice to get instructions on how to use it if you're on headless, instead of the current behavior of simply throwing an exception and quitting.
I might tackle this this weekend.
I've found out about the following piece of code, which could achieve what I want:
if (GraphicsEnvironment.isHeadless()) {
// redirect to the command line options, if no option is supplied, show an help page
} else {
// start the gui
}
I'm mostly running it headless through a Systemd Timer for automated ripping of a list of URLs, but still, it's a "nice to have" for cleanliness on the end-user part :)
Expected Behavior
The app should simply return an help page if no argument is passed, otherwise it should run the operation as intended.
Actual Behavior
The app refuses to do anything and outputs the following error: