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

@@ -104,6 +104,7 @@ typedef struct _NmCli {
gboolean should_wait; /* Indication that nmcli should not end yet */
NMCPrintOutput print_output; /* Output mode */
gboolean multiline_output; /* Multiline output instead of default tabular */
gboolean mode_specified; /* Whether tabular/multiline mode was specified via '--mode' option */
gboolean escape_values; /* Whether to escape ':' and '\' in terse tabular mode */
char *required_fields; /* Required fields in output: '--fields' option */
NmcOutputField *allowed_fields; /* Array of allowed fields for particular commands */