Skip to content

Unexpected Behaviour: Should not allow extra Args to project list #293

@bupd

Description

@bupd

To Reproduce this error

Run harbor project list <anything>

Expected Behaviour

Run harbor project list <anything>

The above command should produce error as shown below.

❯ ./harbor-dev project list create
Error: accepts 0 arg(s), received 1

Current Behaviour

Run harbor project list <anything> works fine.

❯ ./harbor-dev project list create     #this should not work
┌──────────────────────────────────────────────────────────────────────────────────────────────┐
│  ID      Project Name          Access Level  Type          Repo Count    Creation Time       │
│ ──────────────────────────────────────────────────────────────────────────────────────────── │
│  590     11aaaa                private       proxy cache   0             1 day ago           │
│  516     aaa                   public        project       3             15 day ago          │
│  523     af1-test              private       project       1             15 day ago          │
│  496     aloha-test            private       project       2             18 day ago          │

Note

Review all the commands that does not require args and set their arguments to 0. if they are not already specified.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions