@@ -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
5656pub fn list_rpcs ( tio : & TioOpts ) -> Result < ( ) , ( ) > {
@@ -779,7 +779,7 @@ pub fn log_data_dump_deprecated(files: Vec<String>) -> Result<(), ()> {
779779pub 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