Raised if there is a flag naming conflict.
Inherits From: Error
from_flag@classmethodfrom_flag( flagname, flag_values, other_flag_values=None )
Creates a DuplicateFlagError by providing flag name and values.
flagname
flag_values
FlagValues, the FlagValues instance containing the
first definition of flagname.
other_flag_values
FlagValues, if it is not None, it should be
the FlagValues object where the second definition of flagname occurs.
If it is None, we assume that we're being called when attempting to
create the flag a second time, and we use the module calling this one
as the source of the second definition.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates. Some content is licensed under the numpy license.
Last updated 2024-04-26 UTC.