Преглед на файлове

Changing the argument from positional to named for better repo consistency

Beto преди 1 година
родител
ревизия
d85cf35837
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      examples/plot_metrics.py

+ 1 - 1
examples/plot_metrics.py

@@ -65,7 +65,7 @@ def plot_metrics(file_path):
     
 if __name__ == "__main__":
     parser = argparse.ArgumentParser(description='Plot metrics from JSON file.')
-    parser.add_argument('file_path', type=str, help='Path to the metrics JSON file.')
+    parser.add_argument('--file_path', required=True, type=str, help='Path to the metrics JSON file.')
     args = parser.parse_args()
 
     plot_metrics(args.file_path)