From 38bff50701b70ca3cf81a3f6079637de4d276b9e Mon Sep 17 00:00:00 2001 From: Longxiang Lyu <35479537+lolyu@users.noreply.github.com> Date: Thu, 25 Jun 2020 17:19:57 +0800 Subject: [PATCH] [show] Add missing verbose option to "show line" (#961) * Fixing "show line" by adding the missing decorator that supports "--verbose" option. Signed-off-by: lolyu --- show/main.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/show/main.py b/show/main.py index 6b0f6f848420..adaacf36a15b 100755 --- a/show/main.py +++ b/show/main.py @@ -2650,7 +2650,8 @@ def reboot_cause(): # 'line' command ("show line") # @cli.command('line') -def line(): +@click.option('--verbose', is_flag=True, help="Enable verbose output") +def line(verbose): """Show all /dev/ttyUSB lines and their info""" cmd = "consutil show" run_command(cmd, display_cmd=verbose)