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:
Adrian Bonislawski 2019-04-03 14:28:17 +02:00 committed by Liam Girdwood
parent 75466d8b2d
commit 2e63ee2144
1 changed files with 4 additions and 1 deletions

View File

@ -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):