]> err.no Git - yubikey-personalization/commitdiff
add led-inv argument to cli
authorKlas Lindfors <klas@yubico.com>
Mon, 11 Mar 2013 09:39:03 +0000 (10:39 +0100)
committerKlas Lindfors <klas@yubico.com>
Mon, 11 Mar 2013 10:13:45 +0000 (11:13 +0100)
ykpers-args.c

index 46d9754ea3c52dd660d47d414e27eae75c9bfe46..8fe815d7a97a140711040dd58d3a679597f61024 100644 (file)
@@ -148,6 +148,9 @@ const char *usage =
 "          [-]allow-update        set/clear ALLOW_UPDATE\n"
 "          [-]dormant             set/clear DORMANT\n"
 "\n"
+"          Extended flags for firmware version 2.4/3.1 and above:\n"
+"          [-]led-inv             set/clear LED_INV\n"
+"\n"
 "-y        always commit (do not prompt)\n"
 "\n"
 "-v        verbose\n"
@@ -636,10 +639,11 @@ int args_to_config(int argc, char **argv, YKP_CONFIG *cfg, YK_KEY *yk,
                        EXTFLAG("serial-btn-visible", SERIAL_BTN_VISIBLE)
                        EXTFLAG("serial-usb-visible", SERIAL_USB_VISIBLE)
                        EXTFLAG("serial-api-visible", SERIAL_API_VISIBLE)
-      EXTFLAG("use-numeric-keypad", USE_NUMERIC_KEYPAD)
-      EXTFLAG("fast-trig", FAST_TRIG)
+                       EXTFLAG("use-numeric-keypad", USE_NUMERIC_KEYPAD)
+                       EXTFLAG("fast-trig", FAST_TRIG)
                        EXTFLAG("allow-update", ALLOW_UPDATE)
-      EXTFLAG("dormant", DORMANT)
+                       EXTFLAG("dormant", DORMANT)
+                       EXTFLAG("led-inv", LED_INV)
 #undef EXTFLAG
                        else {
                                fprintf(stderr, "Unknown option '%s'\n",