git » autoupdaters.git » main » tree

[main] / mpkg.py

1
2
3
4
5
6
7
8
9
#!/usr/bin/env python3
from autoupdater_helpers import mpkg
import sys
if len(sys.argv) == 3:
    mpkg(sys.argv[1], sys.argv[2])
elif len(sys.argv) == 2:
    mpkg(sys.argv[1])
else:
    print(f"usage: {sys.argv[0]} <package> [version]")