flyctl icon indicating copy to clipboard operation
flyctl copied to clipboard

Extra arguments after "fly ips ls" ignored without error

Open bradfitz opened this issue 2 years ago • 1 comments

Describe the bug

flyctl doesn't reject extra bogus args after "ips list".

  • Operating system
  • fly version

flyctl v0.1.110 linux/amd64 Commit: 6e05067148b9a9ad7e1a7814a69668f265a2ea8e BuildDate: 2023-10-17T01:36:41Z

Paste your fly.toml

primary_region="sea"

Command output:

$ fly ips ls -a tb
VERSION IP      TYPE    REGION  CREATED AT 

$ fly ips ls -a tb sdlkfjsdlkfjsdlkfjslkdfj
VERSION IP      TYPE    REGION  CREATED AT 

$ echo $?
0

bradfitz avatar Oct 19 '23 16:10 bradfitz

What would be the expected result for you? For my own application, it works as I would expect it to in that anything after the -a | --app flag is disregarded:

$ flyctl ips ls -a gobarchar
VERSION IP                      TYPE                    REGION  CREATED AT       
v6      2a09:8280:1::37:d7fb    public (dedicated)      global  Jan 5 2024 11:58
v4      66.241.125.7            public (shared)                 Jan 1 0001 00:00
$ flyctl ips ls -a gobarchar asdf
VERSION IP                      TYPE                    REGION  CREATED AT       
v6      2a09:8280:1::37:d7fb    public (dedicated)      global  Jan 5 2024 11:58
v4      66.241.125.7            public (shared)                 Jan 1 0001 00:00
$ echo $?
0
$ flyctl version
flyctl v0.1.143 linux/amd64 Commit: 6d5058a4 BuildDate: 2024-01-16T19:28:48Z

usrme avatar Feb 01 '24 12:02 usrme