Skip to content

Docs: describe how key flags work #320

Open
@jinnatar

Description

@jinnatar

Currently docs say:

--help: prints a list of all key flags (see below).

However, this is the only mention of key flags. Reading issues I see these are inferred automagically from the main module, and that perhaps flags.declare_key_flag can somehow be used to manually declare them, at least in some circumstances. None of this is documented though and scrambling through what little there is, I was not able to make it work in a multi module environment where I want to selectively surface some flags from various modules into the top level --helpshort. As an alternative I could centralize flag definitions, but then I would still need documentation on key flags to be able to select from that central definition which are key flags and which are not.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions