Skip to content

Commit

Permalink
Update archive_dir argument to be a flag argument
Browse files Browse the repository at this point in the history
  • Loading branch information
opan committed Nov 11, 2020
1 parent 0cbc472 commit b3d71d8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@

parser = argparse.ArgumentParser()
parser.version = "0.7.0"
parser.add_argument("archive_dir",
help="pg_wal/archive_status/ Directory location")
parser.add_argument("--archive_dir",
help="pg_wal/archive_status/ Directory location", action="store", required=True)
parser.add_argument("--debug", help="enable debug log", action="store_true")
parser.add_argument("--version", help="show binary version", action="version")
args = parser.parse_args()
Expand Down
Binary file added wal-g-exporter
Binary file not shown.

0 comments on commit b3d71d8

Please sign in to comment.