cli: multiline mode is default for 'dev list' and 'con list id|uuid'

Option '--multiline' was replaced with '--mode tabular|multiline'.
It was neccessary to be able to switch to tabular output mode for
'dev list' and 'con list id|uuid' commands as they now print out
in multiline mode by default. All other commands are in tabular
mode by default.
This commit is contained in:
Jiří Klimeš
2010-04-06 16:22:01 +02:00
parent 3ccd948f3a
commit 87bf00b3d7
4 changed files with 24 additions and 3 deletions

View File

@@ -476,6 +476,8 @@ do_connections_list (NmCli *nmc, int argc, char **argv)
return nmc->return_value;
}
valid_param_specified = TRUE;
if (!nmc->mode_specified)
nmc->multiline_output = TRUE; /* multiline mode is default for 'con list id|uuid' */
con1 = find_connection (nmc->system_connections, selector, *argv);
con2 = find_connection (nmc->user_connections, selector, *argv);