Skip to content

Commit 4342402

Browse files
authored
add documentation for reboot --diagnostic option (#276)
* add documentation for reboot --diagnostic option * main.cpp: remove stray whitespace
1 parent 8108948 commit 4342402

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1295,7 +1295,7 @@ struct otp_white_label_command : public cmd {
12951295

12961296

12971297
vector<std::shared_ptr<cmd>> otp_sub_commands {
1298-
std::shared_ptr<cmd>( new otp_list_command()),
1298+
std::shared_ptr<cmd>(new otp_list_command()),
12991299
#if HAS_LIBUSB
13001300
std::shared_ptr<cmd>(new otp_get_command()),
13011301
std::shared_ptr<cmd>(new otp_set_command()),
@@ -1477,7 +1477,7 @@ struct reboot_command : public cmd {
14771477
(
14781478
option('a', "--application").set(settings.reboot_app_specified) % "Reboot back into the application (this is the default)" +
14791479
option('u', "--usb").set(settings.reboot_usb) % "Reboot back into BOOTSEL mode" +
1480-
(option('g', "--diagnostic") & integer("partition").min_value(-3).max_value(15).set(settings.reboot_diagnostic_partition)).min(0) +
1480+
(option('g', "--diagnostic") & integer("partition").min_value(-3).max_value(15).set(settings.reboot_diagnostic_partition)).min(0) % "Select diagnostic partition" +
14811481
(option('c', "--cpu") & value("cpu").set(settings.switch_cpu)) % "Select arm | riscv CPU (if possible)"
14821482
).min(0).doc_non_optional(true) % "Reboot type" +
14831483
device_selection % "Selecting the device to reboot";

0 commit comments

Comments
 (0)