public EnrouteCommand(bnd bnd, EnrouteOptions opts) throws Exception { this.bnd = bnd; this.opts = opts; List<String> args = opts._arguments(); if (args.size() == 0) { // Default command printHelp(); } else { // Other commands String cmd = args.remove(0); String help = opts._command().execute(this, cmd, args); if (help != null) { bnd.out.print(help); } } }