Skip to content

Commit

Permalink
[show] Add missing verbose option to "show line" (sonic-net#961)
Browse files Browse the repository at this point in the history
* Fixing "show line" by adding the missing decorator that supports
"--verbose" option.

Signed-off-by: lolyu <lolv@microsoft.com>
  • Loading branch information
lolyu authored Jun 25, 2020
1 parent 9950955 commit 38bff50
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion show/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 38bff50

Please sign in to comment.