org.apache.commons.cli.HelpFormatter.class Maven / Gradle / Ivy
The newest version!
???? -a
Y ? X ? X ? X ? ? X ? ?
? ? X ? ? X ? ? X ? ? X ?
X ?
X ? ? ? ?
?
X ?
?
? ? ? ?
?
X ?
X ?
? ?
X ?
X ? ?
?
? ? ?
$ ?
? ? ? ? ? ? ?
? ?
$ ?
$ ?
? ? ?
? ? ? ? ?
) ?
) ?
? ?
) ?
) ?
) ?
?
X
?
X
X
X
?
C
?
)
)
?
?
Y
)
X
X
?
?
?
?
InnerClasses StringBufferComparator
DEFAULT_WIDTH I
ConstantValue J DEFAULT_LEFT_PAD DEFAULT_DESC_PAD DEFAULT_SYNTAX_PREFIX Ljava/lang/String; DEFAULT_OPT_PREFIX DEFAULT_LONG_OPT_PREFIX DEFAULT_ARG_NAME defaultWidth defaultLeftPad defaultDescPad defaultSyntaxPrefix defaultNewLine defaultOptPrefix defaultLongOptPrefix defaultArgName ()V Code LineNumberTable LocalVariableTable this &Lorg/apache/commons/cli/HelpFormatter; printHelp 5(Ljava/lang/String;Lorg/apache/commons/cli/Options;)V
cmdLineSyntax options Lorg/apache/commons/cli/Options; 6(Ljava/lang/String;Lorg/apache/commons/cli/Options;Z)V autoUsage Z Y(Ljava/lang/String;Ljava/lang/String;Lorg/apache/commons/cli/Options;Ljava/lang/String;)V header footer Z(Ljava/lang/String;Ljava/lang/String;Lorg/apache/commons/cli/Options;Ljava/lang/String;Z)V Z(ILjava/lang/String;Ljava/lang/String;Lorg/apache/commons/cli/Options;Ljava/lang/String;)V width [(ILjava/lang/String;Ljava/lang/String;Lorg/apache/commons/cli/Options;Ljava/lang/String;Z)V pw Ljava/io/PrintWriter; q(Ljava/io/PrintWriter;ILjava/lang/String;Ljava/lang/String;Lorg/apache/commons/cli/Options;IILjava/lang/String;)V leftPad descPad
Exceptions r(Ljava/io/PrintWriter;ILjava/lang/String;Ljava/lang/String;Lorg/apache/commons/cli/Options;IILjava/lang/String;Z)V
printUsage K(Ljava/io/PrintWriter;ILjava/lang/String;Lorg/apache/commons/cli/Options;)V app buff Ljava/lang/StringBuffer; list Ljava/util/ArrayList; option Lorg/apache/commons/cli/Option; i Ljava/util/Iterator; group $Lorg/apache/commons/cli/OptionGroup; names Ljava/util/Collection; iter +(Ljava/io/PrintWriter;ILjava/lang/String;)V argPos printOptions ;(Ljava/io/PrintWriter;ILorg/apache/commons/cli/Options;II)V sb printWrapped text ,(Ljava/io/PrintWriter;IILjava/lang/String;)V nextLineTabStop
renderOptions U(Ljava/lang/StringBuffer;ILorg/apache/commons/cli/Options;II)Ljava/lang/StringBuffer; lpad dpad max optBuf
prefixList Ljava/util/List; optList x renderWrappedText F(Ljava/lang/StringBuffer;IILjava/lang/String;)Ljava/lang/StringBuffer; pos padding findWrapPos (Ljava/lang/String;II)I startPos c C
createPadding (I)Ljava/lang/String; len rtrim &(Ljava/lang/String;)Ljava/lang/String; s
SourceFile HelpFormatter.java s t k _ l _ m _ usage: n g line.separator ! ? o g - p g -- q g arg r g z ? z ? java/io/PrintWriter"# s$ z ?% t&'( "java/lang/IllegalArgumentException cmdLineSyntax not provided s) ? ? ? ?*+ ? ? ? ? java/lang/StringBuffer,- java/util/ArrayList./0123456 org/apache/commons/cli/Option789:;:<=0 [,>?@ | ]A@B+C:D+E@F+G+HI ? ? ? ?J) sK ? ? ? ?LM ;org/apache/commons/cli/HelpFormatter$StringBufferComparator sNOPQR S@,TU@ <VWX+ ? ? ? ?YZY ?H[\]^_` $org/apache/commons/cli/HelpFormatter java/lang/Object &org/apache/commons/cli/HelpFormatter$1 java/lang/System getProperty out Ljava/io/PrintStream; (Ljava/io/OutputStream;)V flush java/lang/String length ()I (Ljava/lang/String;)V trim ()Ljava/lang/String; append ,(Ljava/lang/String;)Ljava/lang/StringBuffer; org/apache/commons/cli/Options
getOptions ()Ljava/util/Collection; java/util/Collection iterator ()Ljava/util/Iterator; java/util/Iterator next ()Ljava/lang/Object; getOptionGroup E(Lorg/apache/commons/cli/Option;)Lorg/apache/commons/cli/OptionGroup; contains (Ljava/lang/Object;)Z add "org/apache/commons/cli/OptionGroup getNames ,(Ljava/lang/Object;)Ljava/lang/StringBuffer; hasNext ()Z
isRequired getOpt equals
getLongOpt hasArg
getArgName toString indexOf (I)I println (I)V helpOptions ()Ljava/util/List; +(Lorg/apache/commons/cli/HelpFormatter$1;)V java/util/Collections sort )(Ljava/util/List;Ljava/util/Comparator;)V java/util/List
hasLongOpt (C)Ljava/lang/StringBuffer;
hasArgName get (I)Ljava/lang/Object; getDescription substring (II)Ljava/lang/String; (II)I charAt (I)C java/lang/Character isWhitespace (C)Z ! X Y ^ _ ` a b _ ` c d _ ` e f g ` h g `
i g ` j g ` k _ l _ m _ n g o g p g q g r g s t u ? 6*? *J? *? *? *? *? ? *
? *?
*? ? v *
i j
k l m n # o ) p / q 5 r w 6 x y z { u P **? +,? ? v
y
z w x y | g } ~ z u Z **? +,? ? v
?
? w * x y | g } ~ ? ? z ? u a *+,-? ? v
?
? w 4 x y | g ? g } ~ ? g z ? u p **? +,-? ? v
? ? w > x y | g ? g } ~ ? g ? ? z ? u m
*,-? ? v
? ? w >
x y
? _
| g
? g
} ~
? g z ? u ?
)? Y? ? :*,-*? *? ? ? ? v ? ? # ? ( ? w R ) x y ) ? _ ) | g ) ? g ) } ~ ) ? g ) ? ? ? ? z ? u ?
*+-? ? v
? ? w \ x y ? ? ? _ | g ? g } ~ ? _ ? _ ? g ? z ? u
j-?
-? ?
? Y? ? ? *+-? ?
*+-? ? ? ? ? *+? *+? ? ? ? ? *+? ? v . ? ? ? ? &