Skip to content

flag: add FlagSet usage examples #36307

@obeyda

Description

@obeyda

What did you expect to see?

Having some examples on the flag package's docs showing how to create subcommands with FlagSet.

What did you see instead?

There's only a package example and Value interface usage and none of them shows how to use FlagSet to create subcommands.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DocumentationIssues describing a change to documentation.FixPendingIssues that have a fix which has not yet been reviewed or submitted.FrozenDueToAgeNeedsFixThe path to resolution is known, but the work has not been done.help wanted

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions