Package org.springframework.roo.shell

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


                                                    .append(option
                                                            .unspecifiedDefaultValue())
                                                    .append("'");
                                        }
                                    }
                                    help.append(option.mandatory() ? " (mandatory) "
                                            : "");

                                    // Store details for later
                                    key = "--" + key;
                                    optionKeys.add(key);
View Full Code Here


                                    key = "--" + key;
                                    optionKeys.add(key);
                                    optionDetails.put(key, help.toString());

                                    // Include it in the mandatory syntax
                                    if (option.mandatory()) {
                                        cmdSyntax.append(" ").append(key);
                                    }
                                }
                            }
                        }
View Full Code Here

                                sb.append("   Help:                   ")
                                        .append(cliOption.help())
                                        .append(LINE_SEPARATOR);
                                sb.append("   Mandatory:              ")
                                        .append(cliOption.mandatory())
                                        .append(LINE_SEPARATOR);
                                sb.append("   Default if specified:   '")
                                        .append(cliOption
                                                .specifiedDefaultValue())
                                        .append("'").append(LINE_SEPARATOR);
View Full Code Here

                            // ROO-389: give inline options given there's
                            // multiple choices available and we want to 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");
                            }
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.