Commit 5dfc8b8f authored by rgaudin's avatar rgaudin
Browse files

Added --version param to check version

parent 7a9aad94
* Fixed concurrent access error on Windows
* Replaced diskpart step with clean MBR flashing
* Added CLI version check (--version)
* Fixed clean cache regression
* Fixed PermissionError on QEMU phase One
......@@ -7,6 +7,8 @@ import sys
import runpy
from multiprocessing import freeze_support
from version import get_version_str
freeze_support() # needed for Windows to support multiprocessing once frozen
if len(sys.argv) == 1:
......@@ -24,8 +26,15 @@ elif sys.argv[1] == "cache":
parser = argparse.ArgumentParser(description="Kiwix Hotspot creation tool")
"--version", help="display version and exit", action="store_true"
sub_parser = parser.add_subparsers()
sub_parser.add_parser("cli", help="run it on the console")
sub_parser.add_parser("image", help="prepare a master image")
sub_parser.add_parser("cache", help="manage cache folder to reclaim disk space")
args = parser.parse_args()
if args.version:
print("Kiwix Hotspot:", get_version_str())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment