Skip to content

Commit ea5a3d6

Browse files
committed
fix pum
1 parent 7fb8a44 commit ea5a3d6

File tree

10 files changed

+11
-11
lines changed

10 files changed

+11
-11
lines changed

docs/docs/cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
usage: update_cli_docs.py [-h] [-c CONFIG_FILE] -s PG_SERVICE [-d DIR] [-v] [--version]
1+
usage: pum [-h] [-c CONFIG_FILE] -s PG_SERVICE [-d DIR] [-v] [--version]
22
{info,install,upgrade,role,check,dump,restore,baseline} ...
33
### options:
44
- `-h, --help`: show this help message and exit

docs/docs/cli/baseline.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
usage: update_cli_docs.py baseline [-h] -b BASELINE [--create-table]
1+
usage: pum baseline [-h] -b BASELINE [--create-table]
22
### options:
33
- `-h, --help`: show this help message and exit
44
- `-b BASELINE, --baseline BASELINE`: Set baseline in the format x.x.x

docs/docs/cli/check.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
usage: update_cli_docs.py check [-h]
1+
usage: pum check [-h]
22
[-i {tables,columns,constraints,views,sequences,indexes,triggers,functions,rules} [{tables,columns,constraints,views,sequences,indexes,triggers,functions,rules} ...]]
33
[-N EXCLUDE_SCHEMA] [-P EXCLUDE_FIELD_PATTERN] [-o OUTPUT_FILE]
44
### options:

docs/docs/cli/dump.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
usage: update_cli_docs.py dump [-h] [-f {DumpFormat.CUSTOM,DumpFormat.PLAIN}] [-N EXCLUDE_SCHEMA] file
1+
usage: pum dump [-h] [-f {DumpFormat.CUSTOM,DumpFormat.PLAIN}] [-N EXCLUDE_SCHEMA] file
22
### positional arguments:
33
- `file`: The backup file
44
### options:

docs/docs/cli/info.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
usage: update_cli_docs.py info [-h]
1+
usage: pum info [-h]
22
### options:
33
- `-h, --help`: show this help message and exit

docs/docs/cli/install.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
usage: update_cli_docs.py install [-h] [-p PARAMETER PARAMETER] [--max-version MAX_VERSION] [-r] [-g]
2-
[-d DEMO_DATA] [--beta-testing] [--skip-drop-app] [--skip-create-app]
1+
usage: pum install [-h] [-p PARAMETER PARAMETER] [--max-version MAX_VERSION] [-r] [-g] [-d DEMO_DATA]
2+
[--beta-testing] [--skip-drop-app] [--skip-create-app]
33
### options:
44
- `-h, --help`: show this help message and exit
55
- `-p PARAMETER PARAMETER, --parameter PARAMETER PARAMETER`: Assign variable for running SQL deltas. Format is name value.

docs/docs/cli/restore.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
usage: update_cli_docs.py restore [-h] [-x] [-N EXCLUDE_SCHEMA] file
1+
usage: pum restore [-h] [-x] [-N EXCLUDE_SCHEMA] file
22
### positional arguments:
33
- `file`: The backup file
44
### options:

docs/docs/cli/role.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
usage: update_cli_docs.py role [-h] {create,grant,revoke,drop}
1+
usage: pum role [-h] {create,grant,revoke,drop}
22
### positional arguments:
33
{create,grant,revoke,drop}
44
Action to perform

docs/docs/cli/upgrade.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
usage: update_cli_docs.py upgrade [-h] [-p PARAMETER PARAMETER] [-u MAX_VERSION] [--beta-testing] [--skip-drop-app]
1+
usage: pum upgrade [-h] [-p PARAMETER PARAMETER] [-u MAX_VERSION] [--beta-testing] [--skip-drop-app]
22
[--skip-create-app]
33
### options:
44
- `-h, --help`: show this help message and exit

pum/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def create_parser() -> argparse.ArgumentParser:
163163
The fully configured argument parser.
164164
165165
"""
166-
parser = argparse.ArgumentParser()
166+
parser = argparse.ArgumentParser(prog="pum")
167167
parser.add_argument("-c", "--config_file", help="set the config file. Default: .pum.yaml")
168168
parser.add_argument("-s", "--pg-service", help="Name of the postgres service", required=True)
169169

0 commit comments

Comments
 (0)