Skip to content

gh repo create: not clear how to invert --enable-issues, --enable-wiki #2901

@silby

Description

@silby

Describe the bug

gh repo create provides --enable-issues and --enable-wiki long options, but the usage text notes these options are (default true). There's no apparent way to invert these options

$ gh --version
gh version 1.5.0 (2021-01-21)
https://github.com/cli/cli/releases/tag/v1.5.0

Steps to reproduce the behavior

$ gh repo create --no-enable-issues test
$ gh repo create --disable-issues test
$ gh repo create --enable-issues false test

Expected vs actual behavior

I'd expect a documented way to actually create a repo issues or wiki disabled. All three imaginary inverted versions of --enable-issues and --enable-wiki produce an error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingdocs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions