Skip to content

Commit 0b387c2

Browse files
committed
Renamed parser to argp
1 parent 2e47999 commit 0b387c2

2 files changed

Lines changed: 10 additions & 10 deletions

File tree

remove-json-keys/utils/bump.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import tomli, tomli_w
55

66
def parse_args():
7-
parser = argparse.ArgumentParser(description='Bump versions in pyproject.toml + README.md')
8-
parser.add_argument('-M', '--major', action='store_true', help='Bump the major (\033[1mx\033[0m.y.z) version')
9-
parser.add_argument('-m', '--minor', action='store_true', help='Bump the minor (x.\033[1my\033[0m.z) version')
10-
parser.add_argument('-p', '--patch', action='store_true', help='Bump the patch (x.y.\033[1mz\033[0m) version')
11-
return parser.parse_args()
7+
argp = argparse.ArgumentParser(description='Bump versions in pyproject.toml + README.md')
8+
argp.add_argument('-M', '--major', action='store_true', help='Bump the major (\033[1mx\033[0m.y.z) version')
9+
argp.add_argument('-m', '--minor', action='store_true', help='Bump the minor (x.\033[1my\033[0m.z) version')
10+
argp.add_argument('-p', '--patch', action='store_true', help='Bump the patch (x.y.\033[1mz\033[0m) version')
11+
return argp.parse_args()
1212

1313
# Init logger
1414
sys.path.insert(0, path.join(path.dirname(__file__), '../src'))

translate-messages/utils/bump.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
import tomli, tomli_w
55

66
def parse_args():
7-
parser = argparse.ArgumentParser(description='Bump versions in pyproject.toml + README.md')
8-
parser.add_argument('-M', '--major', action='store_true', help='Bump the major (\033[1mx\033[0m.y.z) version')
9-
parser.add_argument('-m', '--minor', action='store_true', help='Bump the minor (x.\033[1my\033[0m.z) version')
10-
parser.add_argument('-p', '--patch', action='store_true', help='Bump the patch (x.y.\033[1mz\033[0m) version')
11-
return parser.parse_args()
7+
argp = argparse.ArgumentParser(description='Bump versions in pyproject.toml + README.md')
8+
argp.add_argument('-M', '--major', action='store_true', help='Bump the major (\033[1mx\033[0m.y.z) version')
9+
argp.add_argument('-m', '--minor', action='store_true', help='Bump the minor (x.\033[1my\033[0m.z) version')
10+
argp.add_argument('-p', '--patch', action='store_true', help='Bump the patch (x.y.\033[1mz\033[0m) version')
11+
return argp.parse_args()
1212

1313
# Init logger
1414
sys.path.insert(0, path.join(path.dirname(__file__), '../src'))

0 commit comments

Comments
 (0)