cli: convert 'dev list' to new format; checking options validity for terse
This commit is contained in:
@@ -63,11 +63,12 @@ typedef struct {
|
||||
} NmcOutputField;
|
||||
|
||||
/* Flags for NmcPrintFields */
|
||||
#define NMC_PF_FLAG_MULTILINE 0x00000001 /* Multiline output instead of tabular*/
|
||||
#define NMC_PF_FLAG_TERSE 0x00000002 /* Terse outpud mode */
|
||||
#define NMC_PF_FLAG_PRETTY 0x00000004 /* Pretty output mode */
|
||||
#define NMC_PF_FLAG_HEADER 0x00000008 /* Print headers instead of values */
|
||||
#define NMC_PF_FLAG_ESCAPE 0x00000010 /* Escape column separator and '\' */
|
||||
#define NMC_PF_FLAG_MULTILINE 0x00000001 /* Multiline output instead of tabular*/
|
||||
#define NMC_PF_FLAG_TERSE 0x00000002 /* Terse outpud mode */
|
||||
#define NMC_PF_FLAG_PRETTY 0x00000004 /* Pretty output mode */
|
||||
#define NMC_PF_FLAG_MAIN_HEADER 0x00000008 /* Print main header */
|
||||
#define NMC_PF_FLAG_FIELD_NAMES 0x00000010 /* Print field names instead of values */
|
||||
#define NMC_PF_FLAG_ESCAPE 0x00000020 /* Escape column separator and '\' */
|
||||
|
||||
typedef struct {
|
||||
GArray *indices; /* Array of field indices to the array of allowed fields */
|
||||
|
Reference in New Issue
Block a user