tf.compat.v1.flags.declare_key_flag

Declares one flag as key to the current module.

tf.compat.v1.flags.declare_key_flag(
    flag_name, flag_values=_flagvalues.FLAGS
)

Key flags are flags that are deemed really important for a module. They are important when listing help messages; e.g., if the --helpshort command-line flag is used, then only the key flags of the main module are listed (instead of all flags, as in the case of --helpfull).

Sample usage:

flags.declare_key_flag('flag_1')

Args:

Raises: