mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-04 09:30:31 +01:00
cli: do completion only when needed on 'nmcli con down'
$ nmcli connection down p path Connection 'p' successfully deactivated (D-Bus active path: /org/freedesktop/NetworkManager/ActiveConnection/2) Don't do completion when not requested.
This commit is contained in:
parent
1e1af30d95
commit
021d797089
1 changed files with 1 additions and 1 deletions
|
|
@ -2654,7 +2654,7 @@ do_connection_down (NmCli *nmc, int argc, char **argv)
|
|||
const GPtrArray *connections;
|
||||
const char *selector = NULL;
|
||||
|
||||
if (arg_num == 1)
|
||||
if (arg_num == 1 && nmc->complete)
|
||||
nmc_complete_strings (*arg_ptr, "id", "uuid", "path", "apath", NULL);
|
||||
|
||||
if ( strcmp (*arg_ptr, "id") == 0
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue