mirror of
https://github.com/littlefs-project/littlefs.git
synced 2025-12-09 09:02:53 +00:00
scripts: Reverted -o/-O to include all by-fields by default
For the same reason we output all field fields by default: Because machines can process more information than humans can. Worst case, by fields can still be limited via explicit -b/--by flags.
This commit is contained in:
@@ -1173,16 +1173,17 @@ def main(obj_paths, *,
|
||||
# figure out what fields we're interested in
|
||||
labels = None
|
||||
if by is None:
|
||||
if depth is not None or hot is not None:
|
||||
if args.get('output') or args.get('output_json'):
|
||||
by = StructResult._by
|
||||
elif depth is not None or hot is not None:
|
||||
by = ['z', 'i', 'struct']
|
||||
labels = ['struct']
|
||||
else:
|
||||
by = ['struct']
|
||||
|
||||
if fields is None:
|
||||
if (args.get('output')
|
||||
or args.get('output_json')):
|
||||
fields = ['off', 'size', 'align']
|
||||
if args.get('output') or args.get('output_json'):
|
||||
fields = StructResult._fields
|
||||
else:
|
||||
fields = ['size', 'align']
|
||||
|
||||
|
||||
Reference in New Issue
Block a user