Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 0 additions & 48 deletions .github/instructions/rust-project.instructions.md

This file was deleted.

18 changes: 3 additions & 15 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@ impl CsvFieldMap {
fn build_command() -> Command {
Command::new("BBL Parser")
.version(env!("CARGO_PKG_VERSION"))
.about("Read and parse BBL blackbox log files. Output to various formats.")
.about("Read and parse BBL blackbox log files. Exports to CSV by default (optionally GPX/JSON).")
.arg(
Arg::new("files")
.help("BBL files to parse (.BBL, .BFL, .TXT extensions supported, case-insensitive, supports globbing)")
Expand All @@ -275,16 +275,10 @@ fn build_command() -> Command {
.help("Enable debug output and detailed parsing information")
.action(clap::ArgAction::SetTrue),
)
.arg(
Arg::new("csv")
.long("csv")
.help("Export decoded frame data to CSV files (creates .XX.csv for flight data and .XX.headers.csv for plaintext headers)")
.action(clap::ArgAction::SetTrue),
)
.arg(
Arg::new("output-dir")
.long("output-dir")
.help("Directory for CSV output files (default: same as input file)")
.help("Directory for output files (default: same as input file)")
.value_name("DIR"),
)
.arg(
Expand Down Expand Up @@ -317,7 +311,6 @@ fn main() -> Result<()> {
let matches = build_command().get_matches();

let debug = matches.get_flag("debug");
let export_csv = matches.get_flag("csv");
let export_gpx = matches.get_flag("gpx") || matches.get_flag("gps");
let export_event = matches.get_flag("event");
let force_export = matches.get_flag("force-export");
Expand All @@ -335,7 +328,7 @@ fn main() -> Result<()> {
};

let export_options = ExportOptions {
csv: export_csv,
csv: true, // CSV export is always enabled for the CLI binary
gpx: export_gpx,
event: export_event,
output_dir: output_dir.clone(),
Expand Down Expand Up @@ -468,11 +461,6 @@ fn main() -> Result<()> {
std::process::exit(1);
}

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

Ok(())
}

Expand Down