diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2016-07-12 00:21:55 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2016-08-01 13:52:36 +0200 |
commit | 345291d6f15552b623c813963c5acdd27076c42e (patch) | |
tree | b90f6e1bf5c2961bcc6477e9f97e92ba1d9a8a86 /clients | |
parent | 680b53c96a8cb2b7e4454d7ac5b7855c6a34d5a0 (diff) | |
download | NetworkManager-345291d6f15552b623c813963c5acdd27076c42e.tar.gz |
cli/connections: add completion to load subcommand
Diffstat (limited to 'clients')
-rw-r--r-- | clients/cli/connections.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/clients/cli/connections.c b/clients/cli/connections.c index 1cb488570c..583cb07037 100644 --- a/clients/cli/connections.c +++ b/clients/cli/connections.c @@ -8365,16 +8365,14 @@ do_connection_load (NmCli *nmc, int argc, char **argv) char **filenames, **failures = NULL; int i; - /* Not (yet?) supported */ - if (nmc->complete) - return nmc->return_value; - if (argc == 0) { g_string_printf (nmc->return_text, _("Error: No connection specified.")); - nmc->return_value = NMC_RESULT_ERROR_USER_INPUT; - return nmc->return_value; + return NMC_RESULT_ERROR_USER_INPUT; } + if (nmc->complete) + return NMC_RESULT_COMPLETE_FILE; + filenames = g_new (char *, argc + 1); for (i = 0; i < argc; i++) filenames[i] = argv[i]; |