Change the default publish action from build+ to all

This commit is contained in:
Kovid Goyal 2018-07-10 22:05:33 +05:30
parent 5c85d915cc
commit d6a603d536
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -341,13 +341,16 @@ def main():
help='Only run the specified action, by default the specified action and all sub-sequent actions are run') help='Only run the specified action, by default the specified action and all sub-sequent actions are run')
parser.add_argument( parser.add_argument(
'action', 'action',
default='build', default='all',
nargs='?', nargs='?',
choices=ALL_ACTIONS, choices=list(ALL_ACTIONS) + ['all'],
help='The action to start with') help='The action to start with')
args = parser.parse_args() args = parser.parse_args()
idx = ALL_ACTIONS.index(args.action) if args.action == 'all':
actions = ALL_ACTIONS[idx:] actions = list(ALL_ACTIONS)
else:
idx = ALL_ACTIONS.index(args.action)
actions = ALL_ACTIONS[idx:]
if args.only: if args.only:
del actions[1:] del actions[1:]
else: else: