Formats all the values of all flags known to this instance into a format suitable for logging
Formats all the values of all flags known to this instance into a format suitable for logging
see getAll above
see getAll above
all the flag values in alphabetical order, grouped into (set, unset)
Creates a string containing all the values of all flags known to this instance into a format suitable for logging
Creates a string containing all the values of all flags known to this instance into a format suitable for logging
set getAll above
set getAll above
A string suitable for logging
Get all the flags known to this this Flags instance
Get all the flags known to this this Flags instance
defaults to the includeGlobal settings of this instance
needed to find global flags, defaults to this instance's class loader
all the flags known to this this Flags instance
A simple flags implementation. We support only two formats:
for flags with optional values (booleans): -flag, -flag=value for flags with required values: -flag[= ]value
That's it. These can be parsed without ambiguity.
There is no support for mandatory arguments: That is not what flags are for.
Flags'
apply
adds a new flag to to the flag set, so it is idiomatic to assign instances ofFlags
to a singularflag
:Global flags, detached from a particular
Flags
instance, but accessible to all, are defined by com.twitter.app.GlobalFlag.