Lines Matching full:columns
253 columns = [(col.strip('_'), '_' if col.startswith('_') else '')
257 for col, prefix in columns)
275 def format_groups(groups, columns, fmts, widths): argument
280 yield from format_vars(groupvars, columns, fmts, widths)
283 def format_vars(allvars, columns, fmts, widths): argument
284 fmt = ' '.join(fmts[col] for col in columns)
286 header = fmt.replace(':', ':^').format(*(col.upper() for col in columns))
288 div = ' '.join('-'*(widths[col]+2) for col in columns)
291 values = (getattr(var, col) for col in columns)
300 COLUMNS = 'name,external,capi,scope,filename' variable
301 COLUMN_NAMES = COLUMNS.split(',')
334 columns = raw.split(',')
335 for column in columns:
338 return columns
373 parser.add_argument('--columns', default=COLUMNS,
374 help='a comma-separated list of columns to show')
376 help='a comma-separated list of columns to sort')
400 args.columns = _parse_columns_arg(args.columns, parser.error)
408 filters=None, columns=COLUMN_NAMES, sort=None, group=None, argument
423 columns.remove(group)
427 lines = format_groups(grouped, columns, COLUMN_FORMATS, COLUMN_WIDTHS)
429 lines = format_vars(allvars, columns, COLUMN_FORMATS, COLUMN_WIDTHS)