`incus image list images:ubuntu` does not work, now requires space after `images:`

After the recent update in the CLI, I noticed that commands like the following does not show any images. The reason being, there should be a space after images:.

$ incus image list images:ubuntu
+-------+-------------+--------+-------------+--------------+------+------+-------------+
| ALIAS | FINGERPRINT | PUBLIC | DESCRIPTION | ARCHITECTURE | TYPE | SIZE | UPLOAD DATE |
+-------+-------------+--------+-------------+--------------+------+------+-------------+
$

This changes the semantics and many old guides are now not working.
I am OK if such a change is required to make the code cleaner, etc.

What are the new semantics? At the end of images: (i.e. after specifying the name of the remote), does the CLI stops parsing any commands and expects strings that it checks with every entry and only print those that match all strings?

1 Like

The list command usage is incus list [<remote>:] [<filter>...]. The space between the remote and the filters could be omitted in the past, but it’s no longer the case.

You can use the new --explain flag to see how your command is parsed by the new parser. In your case, images:ubuntu is parsed as a filter, because it can’t be parsed as a remote.