Skip to content

Commit

Permalink
Changing the argument from positional to named for better repo consis…
Browse files Browse the repository at this point in the history
…tency
  • Loading branch information
albertodepaola committed Dec 26, 2023
1 parent fd7041a commit d85cf35
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/plot_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d85cf35

Please sign in to comment.