1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
|
From 89e765fae00c791c9681aeca36fe58495b33cfb7 Mon Sep 17 00:00:00 2001
From: Johannes Schauer Marin Rodrigues <josch@mister-muffin.de>
Date: Thu, 4 Sep 2025 10:42:46 +0200
Subject: [PATCH 1/2] add documentation for reboot --diagnostic option
---
main.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.cpp b/main.cpp
index 0ed9803..f66e6ae 100644
--- a/main.cpp
+++ b/main.cpp
@@ -1477,7 +1477,7 @@ struct reboot_command : public cmd {
(
option('a', "--application").set(settings.reboot_app_specified) % "Reboot back into the application (this is the default)" +
option('u', "--usb").set(settings.reboot_usb) % "Reboot back into BOOTSEL mode" +
- (option('g', "--diagnostic") & integer("partition").min_value(-3).max_value(15).set(settings.reboot_diagnostic_partition)).min(0) +
+ (option('g', "--diagnostic") & integer("partition").min_value(-3).max_value(15).set(settings.reboot_diagnostic_partition)).min(0) % "Select diagnostic partition" +
(option('c', "--cpu") & value("cpu").set(settings.switch_cpu)) % "Select arm | riscv CPU (if possible)"
).min(0).doc_non_optional(true) % "Reboot type" +
device_selection % "Selecting the device to reboot";
--
2.47.2
|