GNOME Bugzilla – Bug 698240
nmcli dev interface args are inconsistent
Last modified: 2020-11-12 14:34:28 UTC
"nmcli dev wifi list", "nmcli dev wifi scan", and "nmcli dev wimax list" require you to put "iface" before an interface name. "nmcli dev show" and "nmcli dev disconnect" *forbid* you to put "iface" before the interface name. :) All nmcli dev commands should allow-but-not-require "iface". "nmcli dev wifi list" and "nmcli dev wimax list" should cleverly figure out which type of arg you passed them, like the nmcli con commands do. "nmcli dev wifi connect" might still need to require it for disambiguation though.
Basically, the 'iface' (or 'ifname' - see bug 698304) is required because they are more arguments and we want user can change their order.
Hm... ok, "iface" actually is optional in "nmcli dev wifi [re]scan"; I got that wrong before. And I'd been thinking that you could only specify one of iface or bssid in "dev wifi list", but I see now that you're allowed to specify both. Still, the fact that you *can't* say iface/ifname in "dev show" and "dev disconnect" seems bad.
NM bugzilla reorganization... sorry for the bug spam.
bugzilla.gnome.org is being shut down in favor of a GitLab instance. We are closing all old bug reports and feature requests in GNOME Bugzilla which have not seen updates for a long time. If you still use NetworkManager and if you still see this bug / want this feature in a recent and supported version of NetworkManager, then please feel free to report it at https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/ Thank you for creating this report and we are sorry it could not be implemented (workforce and time is unfortunately limited).