fix lint errors
This commit is contained in:
parent
b54804d449
commit
a936430fd5
1 changed files with 30 additions and 5 deletions
|
@ -13,11 +13,36 @@ SOURCE_ROOT = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
|
|||
|
||||
def main():
|
||||
|
||||
parser = argparse.ArgumentParser(description='Bump version numbers. Must specify at least one option.')
|
||||
parser.add_argument('--version', default=None, dest='new_version', help='new version number')
|
||||
parser.add_argument('--bump', action='store', dest='bump', default=None, help='increment [major | minor | patch | beta]')
|
||||
parser.add_argument('--stable', action='store_true', default= False, dest='stable', help='promote to stable (i.e. remove `-beta.x` suffix)')
|
||||
parser.add_argument('--dry-run', action='store_true', default= False, dest='dry_run', help='just to check that version number is correct')
|
||||
parser = argparse.ArgumentParser(
|
||||
description='Bump version numbers. Must specify at least one option.'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--version',
|
||||
default=None,
|
||||
dest='new_version',
|
||||
help='new version number'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--bump',
|
||||
action='store',
|
||||
default=None,
|
||||
dest='bump',
|
||||
help='increment [major | minor | patch | beta]'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--stable',
|
||||
action='store_true',
|
||||
default= False,
|
||||
dest='stable',
|
||||
help='promote to stable (i.e. remove `-beta.x` suffix)'
|
||||
)
|
||||
parser.add_argument(
|
||||
'--dry-run',
|
||||
action='store_true',
|
||||
default= False,
|
||||
dest='dry_run',
|
||||
help='just to check that version number is correct'
|
||||
)
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
|
|
Loading…
Reference in a new issue