com.maddenabbott.jcommander.spring.JCommanderRunner Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jcommander-spring-boot-starter Show documentation
Show all versions of jcommander-spring-boot-starter Show documentation
Starter for command line parsing using JCommander
The newest version!
package com.maddenabbott.jcommander.spring;
import com.maddenabbott.jcommander.controller.JCommanderController;
import org.springframework.boot.CommandLineRunner;
public class JCommanderRunner implements CommandLineRunner {
private final JCommanderController jCommanderController;
public JCommanderRunner(final JCommanderController jCommanderController) {
this.jCommanderController = jCommanderController;
}
@Override
public void run(final String... args) throws Exception {
jCommanderController.execute(args);
}
}