Skip to content

Commit

Permalink
Change --data_file into --data-file
Browse files Browse the repository at this point in the history
  • Loading branch information
mandel committed Sep 6, 2024
1 parent c24a17f commit 3184fca
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ pdl --data <JSON-or-YAML-data> <my-example>
This can also be done by passing a JSON or YAML file:

```
pdl --data_file <JSON-or-YAML-file> <my-example>
pdl --data-file <JSON-or-YAML-file> <my-example>
```

The interpreter can also output a trace file that is used by the Live Document visualization tool (see [Live Document](#live_document)):
Expand Down
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ python3 -m pdl.pdl --data <JSON-or-YAML-data> <my-example>
This can also be done by passing a JSON or YAML file:

```
python3 -m pdl.pdl --data_file <JSON-or-YAML-file> <my-example>
python3 -m pdl.pdl --data-file <JSON-or-YAML-file> <my-example>
```

## Overview
Expand Down
3 changes: 2 additions & 1 deletion pdl/pdl.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,8 @@ def main():

parser.add_argument(
"-f",
"--data_file",
"--data-file",
dest="data_file",
help="initial scope data file",
)

Expand Down

0 comments on commit 3184fca

Please sign in to comment.