allow arguments for gitea.py to specify repo

This commit is contained in:
2025-05-28 11:58:10 +02:00
parent 99580aad78
commit 7136fcfd9f

View File

@@ -121,6 +121,8 @@ def change_to_gitea(doit, *repos):
if __name__ == '__main__':
if sys.argv[-1] == 'y':
change_to_gitea(True)
elif len(sys.argv) > 1:
change_to_gitea(True, *sys.argv[1:])
else:
change_to_gitea(False)
print(f'\nUsage: python gitea.py y # to update repos {" ".join(GITEA_REPOS)}\n')