Home | History | Annotate | Download | only in python_gflags

Lines Matching defs:string

69 The exception argument will be a human-readable string.
73 take a name, default value, help-string, and optional 'short' name
77 DEFINE_string: takes any input, and interprets it as a string.
96 error. Otherwise, assign to FLAGS.flag as a string.
370 3. DEFAULT_FLAG_VALUE is in serialized form, i.e., the string you can
375 string 'false' will be represented in the same way as the boolean
394 import string
518 # If flagvalue is the empty string, then this exception is an due to a
707 """Takes a __doc__ string and reformats it as help."""
741 string). Returns (None, None) if the module could not be
758 """Returns: string, name of the module from which execution started."""
817 # Dictionary: flag name (string) -> Flag object.
819 # Dictionary: module name (string) -> list of Flag objects that are defined
825 # Dictionary: module name (string) -> list of Flag objects that are
883 module_name: A string, the name of a Python module.
903 module_name: A string, the name of a Python module.
917 module: A module object or a module name (a string).
933 module: A module object or a module name (a string)
1026 raise FlagsError("Flag name must be a string")
1137 flag_name: A string, the name of the flag to be deleted.
1246 # specified as a string of letters, each letter followed by a colon
1248 # strings. Each string ends with an '=' if it takes an argument.
1356 """Generates a help string for all known flags."""
1360 """Generates a help string for all known flags."""
1390 """Generates a help string for a given module."""
1397 """Generates a help string for a given module."""
1403 """Generates a help string for the key flags of a given module.
1406 module: A module object or a module name (a string).
1409 prefix: A string that is prepended to each generated help line.
1419 module: A module object or a module name (a string).
1422 string describing the key flags of a module.
1432 string describing the key flags of a module.
1477 name: A string, the name of a flag.
1556 filename: A string, the name of the flag file.
1676 """Returns a string with the flags assignments from this FlagValues object.
1768 """Converts value to a python string or, if necessary, unicode-string."""
1794 name: A string, the name of XML element.
1795 value: A Python object, whose string representation will be used
1797 indent: A string, prepended to each line of generated output.
1813 .default_as_str - default value as repr'd string, e.g., "'true'" (or None)
1815 .help - a help string or None if no help is available
1838 string, so it is important that it be a legal value for this flag.
1931 """Returns: a string that describes the type of this Flag."""
1948 module_name: A string, the name of the module that defines this flag.
1950 indent: A string that is prepended to each generated line.
1964 # The default flag value can either be represented as a string like on the
1985 indent: A string that is prepended to each generated line.
2036 The Parse() method checks to make sure that the string argument is a
2041 Subclasses should also define a syntactic_help string which may be
2057 return 'string'
2064 """Base class for generating string representations of a flag value."""
2091 flag_name: string, name of the flag to be checked.
2093 input - value of the corresponding flag (string, boolean, etc.
2118 flag_name: string, name of the flag
2135 name: string, name of the flag
2151 # The DEFINE functions are explained in mode details in the module doc string.
2166 name: A string, the flag name.
2168 help: A help string.
2252 flag_name: A string, the name of an already declared flag.
2280 string), instead of a module object.
2305 # STRING FLAGS
2310 """Registers a flag whose value can be any string."""
2335 # something that always converts to bool (list, string, int, etc.).
2588 """Parser of a string enum value (a string value from a given set).
2590 If enum_values (see below) is not specified, any string is allowed.
2604 return 'string enum'
2608 """Basic enum flag; its value can be any string from list of enum_values."""
2616 if not self.help: self.help = "an enum string"
2626 """Registers a flag whose value can be any string from enum_values."""
2685 separators = list(string.whitespace)
2687 for ws_char in string.whitespace:
2803 string values into the list. The 'default' may be a single string