From d6a603d536a0ac55bbe080a49cd83b3e87458fbc Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 10 Jul 2018 22:05:33 +0530 Subject: [PATCH] Change the default publish action from build+ to all --- publish.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/publish.py b/publish.py index 818c5445a..bcf4269bd 100755 --- a/publish.py +++ b/publish.py @@ -341,13 +341,16 @@ def main(): help='Only run the specified action, by default the specified action and all sub-sequent actions are run') parser.add_argument( 'action', - default='build', + default='all', nargs='?', - choices=ALL_ACTIONS, + choices=list(ALL_ACTIONS) + ['all'], help='The action to start with') args = parser.parse_args() - idx = ALL_ACTIONS.index(args.action) - actions = ALL_ACTIONS[idx:] + if args.action == 'all': + actions = list(ALL_ACTIONS) + else: + idx = ALL_ACTIONS.index(args.action) + actions = ALL_ACTIONS[idx:] if args.only: del actions[1:] else: