Examples of help()


Examples of org.springframework.roo.shell.CliOption.help()

                            // the user
                            final StringBuilder help = new StringBuilder();
                            help.append(LINE_SEPARATOR);
                            help.append(option.mandatory() ? "required --"
                                    : "optional --");
                            if ("".equals(option.help())) {
                                help.append(lastOptionKey).append(": ")
                                        .append("No help available");
                            }
                            else {
                                help.append(lastOptionKey).append(": ")
View Full Code Here

Examples of org.springframework.shell.core.annotation.CliCommand.help()

          for (String value : cmd.value()) {
            sb.append("Keyword:                   ").append(value).append(OsUtils.LINE_SEPARATOR);
          }

          sb.append("Description:               ").append(cmd.help()).append(OsUtils.LINE_SEPARATOR);

          for (Annotation[] annotations : parameterAnnotations) {
            CliOption cliOption = null;
            for (Annotation a : annotations) {
              if (a instanceof CliOption) {
View Full Code Here

Examples of org.springframework.shell.core.annotation.CliOption.help()

                    key = "** default **";
                  }
                  sb.append(" Keyword:                  ").append(key).append(OsUtils.LINE_SEPARATOR);
                }

                sb.append("   Help:                   ").append(cliOption.help())
                    .append(OsUtils.LINE_SEPARATOR);
                sb.append("   Mandatory:              ").append(cliOption.mandatory())
                    .append(OsUtils.LINE_SEPARATOR);
                sb.append("   Default if specified:   '").append(cliOption.specifiedDefaultValue())
                    .append("'").append(OsUtils.LINE_SEPARATOR);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.