Skip to content

[Bug] scoop alias list --verbose - --verbose not recognized #6061

@mattcargile

Description

@mattcargile

Bug Report

Current Behavior

scoop alias list --verbose returns scoop alias: Option --verbose not recognized..

Expected Behavior

It should output the Summary property.

Additional context/output

scoop alias list -v and scoop alias list -verbose works. Docs scoop alias --help reflects --verbose.

Possible Solution

I assume it is something with this line.

$opt, $other, $err = getopt $Args 'v' , 'verbose'

The edit would be a removal of the comment since verbose is a long option.

$opt, $other, $err = getopt $Args 'v' 'verbose'

Once removed, the other problematic UX, is that scoop alias list -verbose returns scoop alias: Option -e not recognized. which is confusing as a user. I'd expect a return of -verbose isn't an option. I assume this is a bug in getopt.

System details

Windows version: 10

OS architecture: 64bit

PowerShell version: 7.4.3

Additional software:

Scoop Configuration

{
  "last_update": "2024-07-16T23:32:30.2674510-05:00",
  "alias": {
    "finfo": "scoop-finfo",
    "fsearch": "scoop-fsearch"
  },
  "scoop_repo": "https://github.com/ScoopInstaller/Scoop",
  "scoop_branch": "master"
}

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