scripts: Adopted default visibility in scripts with complex fields
This makes it so scripts with complex fields will still output all fields to output csv/json files, while only showing a user-friendly subset unless -f/--field is explicitly provided. While internal fields are often too much information to show by default, csv/json files are expected to go to other scripts, not humans. So more information is more useful up until you actually hit a performance bottleneck. And if you _do_ somehow manage to hit a performance bottleneck, you can always limit the output with explicit -f/--field flags.
This commit is contained in:
@@ -2346,7 +2346,6 @@ def main(csv_paths, *,
|
||||
# print table
|
||||
if not args.get('quiet'):
|
||||
table(Result, results, diff_results,
|
||||
# note the use of labels + visible here
|
||||
by=by,
|
||||
fields=visible if visible is not None else fields,
|
||||
sort=sort,
|
||||
|
||||
Reference in New Issue
Block a user