Revision a4ebd726 scripts/gnt-job
b/scripts/gnt-job | ||
---|---|---|
61 | 61 |
@return: the desired exit code |
62 | 62 |
|
63 | 63 |
""" |
64 |
if opts.output is None: |
|
65 |
selected_fields = _LIST_DEF_FIELDS |
|
66 |
elif opts.output.startswith("+"): |
|
67 |
selected_fields = _LIST_DEF_FIELDS + opts.output[1:].split(",") |
|
68 |
else: |
|
69 |
selected_fields = opts.output.split(",") |
|
64 |
selected_fields = ParseFields(opts.output, _LIST_DEF_FIELDS) |
|
70 | 65 |
|
71 | 66 |
output = GetClient().QueryJobs(args, selected_fields) |
72 | 67 |
if not opts.no_headers: |
Also available in: Unified diff