mirror of https://github.com/thesofproject/sof.git
coredump-reader: make columncount dependent on verbose option in help
This is to notice user that columncount option will work only with verbose Signed-off-by: Adrian Bonislawski <adrian.bonislawski@linux.intel.com>
This commit is contained in:
parent
75466d8b2d
commit
2e63ee2144
|
@ -179,7 +179,7 @@ def parse_params():
|
|||
},),
|
||||
( ( '-l', '--columncount', ), {
|
||||
'type' : int,
|
||||
'help' :'set how many colums to group the output in',
|
||||
'help' :'set how many colums to group the output in, ignored without -v',
|
||||
'action':'store',
|
||||
'nargs' : 1,
|
||||
},),
|
||||
|
@ -201,6 +201,9 @@ def parse_params():
|
|||
if not sys.stdin.isatty():
|
||||
parsed.stdin = True
|
||||
|
||||
if parsed.columncount and not parsed.verbose:
|
||||
stderr_print("INFO: -l option will be ignored without -v")
|
||||
|
||||
return parsed
|
||||
|
||||
def chunks(l, n):
|
||||
|
|
Loading…
Reference in New Issue