Skip to content

Commit

Permalink
feat: nor arg ends up like --help arg
Browse files Browse the repository at this point in the history
  • Loading branch information
SalathielGenese committed Jul 6, 2024
1 parent 6f14fec commit 533053d
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,25 @@
import com.osscameroon.jsgenerator.cli.internal.CommandDefault;
import com.osscameroon.jsgenerator.core.Converter;
import com.osscameroon.jsgenerator.core.OutputStreamResolver;
import com.osscameroon.jsgenerator.core.autoconfigure.JsGeneratorCoreAutoconfigure;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringBootConfiguration;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Import;
import picocli.CommandLine;

import java.util.List;

import static java.lang.System.exit;
import static org.springframework.boot.SpringApplication.run;

@EnableAutoConfiguration
@SpringBootConfiguration
@Import(JsGeneratorCoreAutoconfigure.class)
public class JsGeneratorCli {
public static void main(String[] args) {
//noinspection resource
run(JsGeneratorCli.class, args);
run(JsGeneratorCli.class, 0 == args.length ? new String[]{"--help"} : args);
}

@Bean
Expand Down

0 comments on commit 533053d

Please sign in to comment.