Description
The CLI should support additional filters to customize output:
--date YYYY-MM-DD - Fetches flight data for the specified date (your existing core functionality).
--route "CODE->CODE" - Filters to flights between specific departure and arrival airports (e.g., "DFW->LAX").
--airline CODE - Filters to flights operated by a specific airline using IATA/ICAO codes (e.g., "AA", "UA").
--airport CODE - Shows all flights departing from or arriving at the specified airport code.
--departures-only - When used with --airport, shows only outbound flights from that airport.
--arrivals-only - When used with --airport, shows only inbound flights to that airport.
--min-delay MINUTES - Filters to flights with delays equal to or greater than the specified minutes.
--status STATUS - Filters by flight status: "scheduled", "active", "landed", "cancelled", "incident", "diverted".
--export FORMAT - Exports filtered results to file format: "csv", "json", or "xlsx".
--limit NUMBER - Limits output to the specified number of flights (useful for large result sets).
--sort-by FIELD - Sorts results by "delay", "departure", "arrival", "airline", or "route".
Description
The CLI should support additional filters to customize output:
--date YYYY-MM-DD- Fetches flight data for the specified date (your existing core functionality).--route "CODE->CODE"- Filters to flights between specific departure and arrival airports (e.g., "DFW->LAX").--airline CODE- Filters to flights operated by a specific airline using IATA/ICAO codes (e.g., "AA", "UA").--airport CODE- Shows all flights departing from or arriving at the specified airport code.--departures-only- When used with--airport, shows only outbound flights from that airport.--arrivals-only- When used with--airport, shows only inbound flights to that airport.--min-delay MINUTES- Filters to flights with delays equal to or greater than the specified minutes.--status STATUS- Filters by flight status: "scheduled", "active", "landed", "cancelled", "incident", "diverted".--export FORMAT- Exports filtered results to file format: "csv", "json", or "xlsx".--limit NUMBER- Limits output to the specified number of flights (useful for large result sets).--sort-by FIELD- Sorts results by "delay", "departure", "arrival", "airline", or "route".