Explorar o código

Changing the argument from positional to named for better repo consistency

Beto hai 1 ano
pai
achega
d85cf35837
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)