@@ -1449,11 +1449,11 @@ def commit_changes(githubtoken):
1449
1449
call (
"git push 'https://%[email protected] /defold/defold.github.io.git' HEAD:master" % (
githubtoken ))
1450
1450
1451
1451
1452
- ALL_COMMANDS = [ "docs" , "refdoc" , "asset-portal" , "games-showcase" , "examples" , "codepad" , "commit" , "searchindex" , "extensions" ]
1452
+ ALL_COMMANDS = [ "all" , "help" , " docs" , "refdoc" , "asset-portal" , "games-showcase" , "examples" , "codepad" , "commit" , "searchindex" , "extensions" ]
1453
1453
ALL_COMMANDS .sort ()
1454
1454
1455
1455
parser = ArgumentParser ()
1456
- parser .add_argument ('commands' , nargs = "+" , help = 'Commands (' + ', ' .join (ALL_COMMANDS ) + ', all, help )' )
1456
+ parser .add_argument ('commands' , nargs = "+" , help = 'Commands (' + ', ' .join (ALL_COMMANDS ) + ')' )
1457
1457
parser .add_argument ("--githubtoken" , dest = "githubtoken" , help = "Authentication token for GitHub API and " )
1458
1458
parser .add_argument ("--extension" , dest = "extensions" , action = 'append' , help = "Which extension to process" )
1459
1459
parser .add_argument ("--download" , dest = "download" , action = 'store_true' , help = "Download updated content for the command(s) in question" )
@@ -1475,13 +1475,15 @@ def commit_changes(githubtoken):
1475
1475
"""
1476
1476
1477
1477
if "all" in args .commands :
1478
- args .commands .remove ("all" )
1479
1478
commands = []
1480
1479
commands .extend (ALL_COMMANDS )
1481
- commands .extend (args .commands )
1480
+ commands .remove ("all" )
1481
+ commands .remove ("help" )
1482
+ # make sure commit is the last command
1483
+ commands .remove ("commit" )
1484
+ commands .append ("commit" )
1482
1485
args .commands = commands
1483
1486
1484
-
1485
1487
for command in args .commands :
1486
1488
if command == "help" :
1487
1489
parser .print_help ()
0 commit comments