Skip to content

Commit aba77bf

Browse files
committed
Merged arg parsing sections
1 parent 3c8bd5b commit aba77bf

2 files changed

Lines changed: 0 additions & 4 deletions

File tree

remove-json-keys/utils/bump.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
argp.add_argument('-p', '--patch', action='store_true', help='Bump the patch (x.y.\033[1mz\033[0m) version')
1717
argp.add_argument('-h', '--help', action='help', help='Show help screen')
1818
args = argp.parse_args()
19-
20-
# Init bump_type
2119
bump_type = 'major' if args.major else 'minor' if args.minor else 'patch' if args.patch else None
2220
if not bump_type:
2321
log.error('You must pass --<major|minor|patch> as an argument.')

translate-messages/utils/bump.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,6 @@
1616
argp.add_argument('-p', '--patch', action='store_true', help='Bump the patch (x.y.\033[1mz\033[0m) version')
1717
argp.add_argument('-h', '--help', action='help', help='Show help screen')
1818
args = argp.parse_args()
19-
20-
# Init bump_type
2119
bump_type = 'major' if args.major else 'minor' if args.minor else 'patch' if args.patch else None
2220
if not bump_type:
2321
log.error('You must pass --<major|minor|patch> as an argument.')

0 commit comments

Comments
 (0)