Skip to content

Commit 4e25fd8

Browse files
committed
Fix: Replace tio- in help messages with correct new commands
1 parent 51d30c1 commit 4e25fd8

6 files changed

Lines changed: 16 additions & 16 deletions

File tree

twinleaf-tools/src/tio_cli.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,4 +504,4 @@ pub struct ProxyCli {
504504
/// Enumerate all serial devices, then quit
505505
#[arg(short = 'e', long = "enumerate", name = "enum")]
506506
enumerate: bool,
507-
}
507+
}

twinleaf-tools/src/tools/tio_health.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// tio-health
1+
// tio health
22
//
33
// Live timing & rate diagnostics by device route.
44
// Uses DeviceTree for automatic metadata handling.
@@ -520,7 +520,7 @@ fn draw_ui(
520520

521521
// Header
522522
let header_text = format!(
523-
"tio-health — jitter={}s warn/err={}/{}ppm fps={} stale={}ms",
523+
"tio health — jitter={}s warn/err={}/{}ppm fps={} stale={}ms",
524524
cli.jitter_window, cli.ppm_warn, cli.ppm_err, cli.fps, cli.stale_ms
525525
);
526526
f.render_widget(

twinleaf-tools/src/tools/tio_monitor.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// tio-monitor
1+
// tio monitor
22
// Live sensor data display with plot and FFT capabilities
33
// Build: cargo run --release -- <tio-url> [options]
44

twinleaf-tools/src/tools/tio_proxy.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//! tio-proxy
1+
//! tio proxy
22
//!
33
//! Multiplexes access to a sensor, exposing the functionality of tio::proxy
44
//! via TCP.
@@ -174,7 +174,7 @@ pub fn run_proxy(proxy_cli: ProxyCli) -> Result<(), ()> {
174174

175175
let subtree = tio::proto::DeviceRoute::from_str(&proxy_cli.subtree).expect("Invalid sensor subtree");
176176

177-
println!("tio-proxy starting:");
177+
println!("tio proxy starting:");
178178
println!(
179179
" Sensor: {} {}",
180180
sensor_url,

twinleaf-tools/src/tools/tio_text_proxy.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ use crate::TioOpts;
88

99
#[derive(Parser, Debug)]
1010
#[command(
11-
name = "tio-text-proxy",
11+
name = "tio-nmea-proxy",
1212
version,
1313
about = "Bridge Twinleaf sensor data to NMEA TCP stream"
1414
)]

twinleaf-tools/src/tools/tio_tool.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ fn report_missing_metadata(mut routes: Vec<DeviceRoute>, is_error: bool) {
5050
eprintln!(" ... and {} more", routes.len() - 5);
5151
}
5252
}
53-
eprintln!("Hint: ensure the log includes metadata or capture it with `tio-tool log-meta`, including it as an argument before the log.");
53+
eprintln!("Hint: ensure the log includes metadata or capture it with `tio log metadata`, including it as an argument before the log.");
5454
}
5555

5656
pub fn list_rpcs(tio: &TioOpts) -> Result<(), ()> {
@@ -779,7 +779,7 @@ pub fn log_data_dump_deprecated(files: Vec<String>) -> Result<(), ()> {
779779
pub fn log_csv(args: Vec<String>, sensor: Option<String>, output: Option<String>) -> Result<(), ()> {
780780
if args.is_empty() {
781781
eprintln!("Invalid invocation: missing stream name and log files");
782-
eprintln!("Usage: tio-tool log-csv <stream> <log.tio>... [-s <route>]");
782+
eprintln!("Usage: tio log csv <stream> <log.tio>... [-s <route>]");
783783
return Err(());
784784
}
785785

@@ -792,7 +792,7 @@ pub fn log_csv(args: Vec<String>, sensor: Option<String>, output: Option<String>
792792
stream_arg = Some(arg);
793793
} else {
794794
eprintln!("Invalid invocation: multiple stream arguments provided");
795-
eprintln!("Usage: tio-tool log-csv <stream> <log.tio>... [-s <route>]");
795+
eprintln!("Usage: tio log csv <stream> <log.tio>... [-s <route>]");
796796
eprintln!("Hint: log files should end with .tio");
797797
return Err(());
798798
}
@@ -802,14 +802,14 @@ pub fn log_csv(args: Vec<String>, sensor: Option<String>, output: Option<String>
802802
stream
803803
} else {
804804
eprintln!("Invalid invocation: missing stream name or id");
805-
eprintln!("Usage: tio-tool log-csv <stream> <log.tio>... [-s <route>]");
805+
eprintln!("Usage: tio log csv <stream> <log.tio>... [-s <route>]");
806806
eprintln!("Hint: log files should end with .tio");
807807
return Err(());
808808
};
809809

810810
if files.is_empty() {
811811
eprintln!("Invalid invocation: missing log file");
812-
eprintln!("Usage: tio-tool log-csv <stream> <log.tio>... [-s <route>]");
812+
eprintln!("Usage: tio log csv <stream> <log.tio>... [-s <route>]");
813813
return Err(());
814814
}
815815

@@ -838,7 +838,7 @@ pub fn log_csv(args: Vec<String>, sensor: Option<String>, output: Option<String>
838838
for path in &files {
839839
let file_data = std::fs::read(path).map_err(|e| {
840840
eprintln!("Failed to read log file {}: {}", path, e);
841-
eprintln!("Usage: tio-tool log-csv <stream> <log.tio>... [-s <route>]");
841+
eprintln!("Usage: tio log csv <stream> <log.tio>... [-s <route>]");
842842
})?;
843843
let mut rest: &[u8] = &file_data;
844844
while rest.len() > 0 {
@@ -915,7 +915,7 @@ pub fn log_csv(args: Vec<String>, sensor: Option<String>, output: Option<String>
915915
eprintln!();
916916
eprintln!("To see available routes and streams, run:");
917917
eprintln!(
918-
" tio-tool log-dump -m {}",
918+
" tio log dump -m {}",
919919
files.first().unwrap_or(&"<file>".to_string())
920920
);
921921
return Err(());
@@ -1093,7 +1093,7 @@ pub fn log_hdf(
10931093
_split_level: SplitLevel,
10941094
_split_policy: SplitPolicy,
10951095
) -> Result<(), ()> {
1096-
eprintln!("Error: This version of tio-tool was compiled without HDF5 support.");
1096+
eprintln!("Error: This version of twinleaf-tools was compiled without HDF5 support.");
10971097
eprintln!("To enable it, reinstall with:");
10981098
eprintln!(" cargo install twinleaf-tools --features hdf5");
10991099
Err(())
@@ -1197,4 +1197,4 @@ pub fn firmware_upgrade(tio: &TioOpts, firmware_path: String) -> Result<(), ()>
11971197
panic!("upgrade failed");
11981198
}
11991199
Ok(())
1200-
}
1200+
}

0 commit comments

Comments
 (0)