diff options
author | Sylvain Thenault <sylvain.thenault@logilab.fr> | 2008-12-01 11:22:38 +0100 |
---|---|---|
committer | Sylvain Thenault <sylvain.thenault@logilab.fr> | 2008-12-01 11:22:38 +0100 |
commit | 65c478e1645131acc92cf160df7712146ce043f4 (patch) | |
tree | de7e7bc1a69eb770621cef24cf1f254bb643d546 /optik_ext.py | |
parent | d57c02e99ddda1ae7d53d71365246eff9df9f727 (diff) | |
download | logilab-common-65c478e1645131acc92cf160df7712146ce043f4.tar.gz |
complete help
Diffstat (limited to 'optik_ext.py')
-rw-r--r-- | optik_ext.py | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/optik_ext.py b/optik_ext.py index d737a39..81d75a8 100644 --- a/optik_ext.py +++ b/optik_ext.py @@ -11,7 +11,23 @@ It also defines three new types for optik/optparse command line parser : argument of this type will be true if 'y' or 'yes', false if 'n' or 'no' * named argument of this type are in the form <NAME>=<VALUE> or <NAME>:<VALUE> - + * password + argument of this type wont be converted but this is used by other tools + such as interactive prompt for configuration to double check value and + use an invisible field + * multiple_choice + same as default "choice" type but multiple choices allowed + * file + argument of this type wont be converted but checked that the given file exists + * color + argument of this type wont be converted but checked its either a + named color or a color specified using hexadecimal notation (preceded by a #) + * time + argument of this type will be converted to a float value in seconds + according to time units (ms, s, min, h, d) + * bytes + argument of this type will be converted to a float value in bytes + according to byte units (b, kb, mb, gb, tb) :copyright: 2003-2008 LOGILAB S.A. (Paris, FRANCE), all rights reserved. :contact: http://www.logilab.fr/ -- mailto:contact@logilab.fr |