The culprit was: I forgot to copy the arguments from main into the run 
method of my Application class:
https://github.com/aaroncarsonart/MySqlQueryEngine/blob/master/src/main/java/com/aaroncarsonart/msqe/MsqeApplication.java#L9-L11

    public static void main(String[] args) throws Exception {
        MsqeApplication application = new MsqeApplication();
        application.run(); // needs to be: application.run(args);
    }


All I needed was a rubber duck to explain the problem to and some time to 
figure it out myself.  Thank you to anyone who read this and considered the 
problem before I found the answer.

On Monday, June 8, 2020 at 6:19:44 PM UTC-5, Aaron Carson wrote:
>
> *(Note: Initially I deleted this post when I found the answer, but later 
> decided to re-post it so I could share the answer with any interested 
> parties.)*
>
> I followed the dropwizard tutorial here: 
> https://www.dropwizard.io/en/latest/getting-started.html#running-your-application
> And developed the following test project: 
> https://github.com/aaroncarsonart/MySqlQueryEngine
>
> Attempting to run the jar with the following command:
>
> java -jar target/MySqlQueryEngine-1.0-SNAPSHOT.jar server msqe.yaml
>
> I am getting the following -h output as though I didn't provide server and 
> the config file.
>
> usage: java -jar MySqlQueryEngine-1.0-SNAPSHOT.jar
>        [-h] [-v] {server,check} ...
>
> positional arguments:
>   {server,check}         available commands
>
> named arguments:
>   -h, --help             show this help message and exit
>   -v, --version          show the application version and exit
>
> Is my project missing something to get the server to run?
>

-- 
You received this message because you are subscribed to the Google Groups 
"dropwizard-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/dropwizard-user/7b45a06e-0f48-4b1a-af79-45a0ff2e3ea6o%40googlegroups.com.

Reply via email to