Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OTP: settings: Add --serial-usb-visible option #645

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions ykman/_cli/otp.py
Original file line number Diff line number Diff line change
Expand Up @@ -863,6 +863,12 @@ def hotp(ctx, slot, key, digits, counter, identifier, no_enter, force):
help="use scancodes for numeric keypad when sending digits "
"(helps for some keyboard layouts)",
)
@click.option(
"--serial-usb-visible",
is_flag=True,
show_default=True,
help="enable serial number in the USB iSerial field",
)
def settings(
ctx,
slot,
Expand All @@ -871,6 +877,7 @@ def settings(
enter,
pacing,
use_numeric_keypad,
serial_usb_visible,
force,
):
"""
Expand Down Expand Up @@ -926,6 +933,7 @@ def settings(
UpdateConfiguration()
.append_cr(enter)
.use_numeric(use_numeric_keypad)
.serial_usb_visible(serial_usb_visible)
.pacing(pacing_10ms, pacing_20ms),
new_access_code,
ctx.obj["access_code"],
Expand Down