package bamboo;

import bamboo.app.Bamboo;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

import java.io.IOException;

@SpringBootApplication
public class Application {
    public static void main(String[] args) {
        SpringApplication.run(Application.class, args);
    }

    @Bean
    public Bamboo getBamboo() throws IOException {
        return new Bamboo(false);
    }
}

@@ -333,16 +333,966 @@
 args) %7B%0A
+        for (int i = 0; i %3C args.length; i++) %7B%0A            switch (args%5Bi%5D) %7B%0A                case %22-h%22:%0A                case %22--help%22:%0A                    System.out.println(%22Options:%5Cn%22 +%0A                            %22  -p port  Web server port%5Cn%22 +%0A                            %22  -b addr  Web server bind address%5Cn%22 +%0A                            %22  -c path  Web server context path%22);%0A                    return;%0A                case %22-c%22:%0A                    System.setProperty(%22server.servlet.context-path%22, args%5B++i%5D);%0A                    break;%0A                case %22-p%22:%0A                    System.setProperty(%22server.port%22, args%5B++i%5D);%0A                    break;%0A                case %22-b%22:%0A                    System.setProperty(%22server.address%22, args%5B++i%5D);%0A                    break;%0A                default:%0A                    System.err.println(%22Ignoring unknown option: %22 + args%5Bi%5D);%0A                    break;%0A            %7D%0A        %7D%0A
         

Add command-line options compatible with old main()