mirror of
https://github.com/niess/python-appimage.git
synced 2026-03-14 12:20:14 +01:00
Select appimagetool version
This commit is contained in:
@@ -27,6 +27,8 @@ def main():
|
||||
help='Command to execute',
|
||||
dest='command')
|
||||
|
||||
parser.add_argument('-a', '--appimagetool-version',
|
||||
help='set appimagetool version')
|
||||
parser.add_argument('-q', '--quiet', help='disable logging',
|
||||
dest='verbosity', action='store_const', const='ERROR')
|
||||
parser.add_argument('-v', '--verbose', help='print extra information',
|
||||
@@ -98,6 +100,10 @@ def main():
|
||||
from .utils import log
|
||||
log.set_level(args.verbosity)
|
||||
|
||||
if args.appimagetool_version:
|
||||
from .utils import deps
|
||||
deps.APPIMAGETOOL_VERSION = args.appimagetool_version
|
||||
|
||||
# check if no arguments are passed
|
||||
if args.command is None:
|
||||
parser.print_help()
|
||||
|
||||
Reference in New Issue
Block a user