diff --git a/stat/frequency.py b/stat/frequency.py index d92c8fc..5633799 100644 --- a/stat/frequency.py +++ b/stat/frequency.py @@ -39,10 +39,10 @@ def plot_freq(stats_df: pd.DataFrame, title: str) -> go.Figure: return fig if __name__ == "__main__": - parser = argparse.ArgumentParser(description="Analyze CAN bus frequency.") - parser.add_argument("-i", "--input", type=Path, required=True) - parser.add_argument("-o", "--output", type=Path, default=Path("freq_report.html")) - parser.add_argument("-t", "--title", type=str, default="CAN Bus Message Frequency") + parser = argparse.ArgumentParser(description="Analyze CAN bus message frequency") + parser.add_argument("input", type=Path, help="Path to the input CAN log file") + parser.add_argument("output", type=Path, nargs="?", default=Path("freq_report.html"), help="Path to the output HTML report") + parser.add_argument("title", nargs="?", default="CAN Bus Message Frequency", help="Title for the HTML report") args = parser.parse_args() df = load_data(args.input)