cli/connections: add completion to load subcommand

This commit is contained in:
Lubomir Rintel 2016-07-12 00:21:55 +02:00
parent 680b53c96a
commit 345291d6f1

View file

@ -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];