Codota Logo
OptionDescriptor.printUsage
Code IndexAdd Codota to your IDE (free)

How to use
printUsage
method
in
org.crsh.cli.descriptor.OptionDescriptor

Best Java code snippets using org.crsh.cli.descriptor.OptionDescriptor.printUsage (Showing top 4 results out of 315)

  • Add the Codota plugin to your IDE and get smart completions
private void myMethod () {
LocalDateTime l =
  • Codota Iconnew LocalDateTime()
  • Codota IconLocalDateTime.now()
  • Codota IconDateTimeFormatter formatter;String text;formatter.parseLocalDateTime(text)
  • Smart code suggestions by Codota
}
origin: crashub/crash

protected void printFQNWithOptions(CommandDescriptor<?> command, Appendable stream) throws IOException {
 CommandDescriptor<?> owner = command.getOwner();
 if (owner != null) {
  printFQNWithOptions(owner, stream);
  stream.append(' ');
 }
 stream.append(command.getName());
 for (OptionDescriptor option : command.getOptions()) {
  stream.append(' ');
  option.printUsage(stream);
 }
}
origin: org.crashub/crash.cli

protected void printFQNWithOptions(CommandDescriptor<?> command, Appendable stream) throws IOException {
 CommandDescriptor<?> owner = command.getOwner();
 if (owner != null) {
  printFQNWithOptions(owner, stream);
  stream.append(' ');
 }
 stream.append(command.getName());
 for (OptionDescriptor option : command.getOptions()) {
  stream.append(' ');
  option.printUsage(stream);
 }
}
origin: org.crsh/crsh.cli

writer.append("usage: ").append(getName());
for (OptionDescriptor option : getOptions()) {
 option.printUsage(writer);
writer.append(" ");
StringBuilder sb = new StringBuilder();
option.printUsage(sb);
String usage = sb.toString();
writer.append(usage);
origin: org.crsh/crsh.cli

 for (OptionDescriptor option : getOptions()) {
  writer.append(" ");
  option.printUsage(writer);
  for (OptionDescriptor option : getOptions()) {
   writer.append(Util.MAN_TAB);
   option.printUsage(writer);
   String optionText = option.getDescription().getBestEffortMan();
   if (optionText.length() > 0) {
for (OptionDescriptor option : owner.getOptions()) {
 writer.append(" ");
 option.printUsage(writer);
 option.printUsage(writer);
org.crsh.cli.descriptorOptionDescriptorprintUsage

Javadoc

Prints the option names as an alternative of switches surrounded by a square brace, for instance: "[-f --foo]"

Popular methods of OptionDescriptor

  • getMultiplicity
  • getNames
  • getType
  • checkChar
  • getArity
  • getDescription
  • getUsage
  • parse
  • <init>
  • getAnnotation
  • isRequired
  • isRequired

Popular in Java

  • Making http requests using okhttp
  • compareTo (BigDecimal)
  • getSupportFragmentManager (FragmentActivity)
    Return the FragmentManager for interacting with fragments associated with this activity.
  • setScale (BigDecimal)
    Returns a BigDecimal whose scale is the specified value, and whose value is numerically equal to thi
  • Thread (java.lang)
    A thread is a thread of execution in a program. The Java Virtual Machine allows an application to ha
  • Iterator (java.util)
    An iterator over a collection. Iterator takes the place of Enumeration in the Java Collections Frame
  • Stack (java.util)
    The Stack class represents a last-in-first-out (LIFO) stack of objects. It extends class Vector with
  • BlockingQueue (java.util.concurrent)
    A java.util.Queue that additionally supports operations that wait for the queue to become non-empty
  • Pattern (java.util.regex)
    A compiled representation of a regular expression. A regular expression, specified as a string, must
  • Annotation (javassist.bytecode.annotation)
    The annotation structure.An instance of this class is returned bygetAnnotations() in AnnotationsAttr
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now