Skip to content

Commit ef6cef4

Browse files
committed
feat: add informational message when no export flags are used
Added user-friendly message that appears when files are successfully processed but no output files are created due to missing export flags (--csv, --gpx, --event). The message guides users to use --csv for data export, improving UX.
1 parent 8654a1e commit ef6cef4

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/main.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,11 @@ fn main() -> Result<()> {
468468
std::process::exit(1);
469469
}
470470

471+
// Inform user when no output files were created due to missing --csv flag
472+
if processed_files > 0 && !export_csv && !export_gpx && !export_event {
473+
println!("\nNote: No output files were created. Use --csv to export data to CSV files.");
474+
}
475+
471476
Ok(())
472477
}
473478

0 commit comments

Comments
 (0)