public void apply(Swarm swarm) throws IOException, ModuleLoadException {
        applyProperties(swarm);
        applyConfigurations(swarm);

        if (get(HELP)) {
            displayVersion(System.err);
            System.err.println();
            displayHelp(System.err);
            System.exit(0);
        }

        if (get(CONFIG_HELP) != null) {
            displayConfigHelp(System.err, get(CONFIG_HELP));
            System.exit(0);
        }

        if (get(YAML_HELP) != null) {
            dumpYaml(System.err, get(YAML_HELP));
            System.exit(0);
        }

        if (get(VERSION)) {
            displayVersion(System.err);
        }
    }
public void apply ( Swarm swarm ) throws IOException , ModuleLoadException { applyProperties ( swarm ) ; applyConfigurations ( swarm ) ; if ( get ( HELP ) ) { displayVersion ( System . err ) ; System . err . println ( ) ; displayHelp ( System . err ) ; System . exit ( 0 ) ; } if ( get ( CONFIG_HELP ) != null ) { displayConfigHelp ( System . err , get ( CONFIG_HELP ) ) ; System . exit ( 0 ) ; } if ( get ( YAML_HELP ) != null ) { dumpYaml ( System . err , get ( YAML_HELP ) ) ; System . exit ( 0 ) ; } if ( get ( VERSION ) ) { displayVersion ( System . err ) ; } }
Apply properties and configuration from the parsed commandline to a container.

@param swarm The Swarm instance to apply configuration to.
@throws IOException If an error occurs resolving any URL.