Skip to content

Clarify windows quoting requirements in alias help #3916

@prakash-niroula

Description

@prakash-niroula

Describe the bug

The bug is that Whenever I try to create the alias of deleting repos, it doesnt let me do it
Instead gives me an error

gh --version
gh version 1.12.0 (2021-06-29)
https://github.com/cli/cli/releases/tag/v1.12.0

Steps to reproduce the behavior

  1. Input: gh alias set delete 'api -X DELETE repos/$1'
  2. Error:
unknown shorthand flag: 'X' in -X

Usage:  gh alias set <alias> <expansion> [flags]

Flags:
  -s, --shell   Declare an alias to be passed through a shell interpreter

Expected vs actual behavior

Expected: to create alias

Behaviour: Creating Error

Logs

here '>>' is just to show command line interface

>>gh alias set delete 'api -X DELETE repos/$1'

unknown shorthand flag: 'X' in -X

Usage:  gh alias set <alias> <expansion> [flags]

Flags:
  -s, --shell   Declare an alias to be passed through a shell interpreter

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