diff options
author | Jason Wheeler <bigwheels16@jkbff.com> | 2012-05-29 14:30:30 -0600 |
---|---|---|
committer | Jason Wheeler <bigwheels16@jkbff.com> | 2012-05-29 14:30:30 -0600 |
commit | f8f831066f2571923ca6f457852944dd9a63dfc4 (patch) | |
tree | d426f42f2646a117db9541bd4bce9c6a79bb3623 /doc | |
parent | 5bbf7af0a020eb6da94be078c80300c19b6d77d4 (diff) | |
download | platform_external_jcommander-f8f831066f2571923ca6f457852944dd9a63dfc4.tar.gz platform_external_jcommander-f8f831066f2571923ca6f457852944dd9a63dfc4.tar.bz2 platform_external_jcommander-f8f831066f2571923ca6f457852944dd9a63dfc4.zip |
updated doc with info about echoInput
Diffstat (limited to 'doc')
-rw-r--r-- | doc/index.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/doc/index.html b/doc/index.html index de5d755..88a33c2 100644 --- a/doc/index.html +++ b/doc/index.html @@ -157,6 +157,16 @@ Value for -password (Connection password): You will need to type the value at this point before JCommander resumes. +<h4>Echo Input</h4> + +In Java 6, by default, you will not be able to see what you type for passwords entered at the prompt (Java 5 and lower will always show the password). However, you can override this by setting <tt>echoInput</tt> to "true" (default is "false" and this setting only has an effect when <tt>password</tt> is "true"): +<pre class="brush: java"> +public class ArgsPassword { + @Parameter(names = "-password", description = "Connection password", password = true, echoInput = true) + private String password; +} +</pre> + <h2><a class="section" name="Custom_types">Custom types</a></h2> <h3>By annotation</h3> |