Skip to content

Consistently show default values in the web manual, man pages, and --help usage #8387

Description

@zsloane

CLI Feedback

The man pages show the default values for flags (such as --limit default of 30, issue list --state default of open, etc) but the web manual does not

It took me longer than I care to admit to figure out why my gh project item-list call without a limit set wasn't including all my project items even though "totalCount" was reporting ~200+ (my total number of items)

Activity

  1. williammartin commented on Nov 28, 2023

    @williammartin
    Member

    That is interesting and definitely an oversight, thanks for reporting.

    The same thing occurs with man gh-project-item-list (our actual man pages), whereas the help text (what I think you refer to as man pages) do.

    The generation of these man pages is kinda gnarly, but I'm happy to mark this help wanted and if anyone wants to pick it up and needs direction we can certainly provide that.

  2. zsloane commented on Nov 28, 2023

    @zsloane
    ContributorAuthor

    Sorry. I did mean the help text not man page.

    Could you point me in the right direction? I would like to contribute

  3. williammartin commented on Nov 28, 2023

    @williammartin
    Member

    Great, thanks for jumping in. Right now I can't put together all the pieces of the puzzle because I'm short on time but the gist of it is I believe the changes are going to be around:

    I think the flags expose a DefValue property that could be used.

    And I believe you can generate the artifacts using make site-docs and make manpages (but I haven't confirmed this right now).

    If you need more pointers let me know and I'll try to make more time later!

  4. andyfeller commented on Dec 1, 2023

    @andyfeller
    Contributor

    @zsloane @williammartin : could someone help me understand what is missing from man gh-project-item-list and its online page?

    Screenshot 2023-12-01 at 9 59 14 AM Screenshot 2023-12-01 at 9 59 30 AM

    Aside from excess spacing, they appear consistent of an experience, I don't see where we show default values in the man page as claimed.

    UPDATE: Thanks to @williammartin for calling out that we want the default values that the gh ... --help pages show to be reflected on both the man pages and the CLI website 👍

  5. changed the title [-]Show default values in the web manual[/-] [+]Consistently show default values in the web manual, man pages, and --help usage[/+] on Dec 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions