Commit d7b32f4f authored by Nigel Kukard's avatar Nigel Kukard
Browse files

Added commandline argument parser

parent cc9c20b8
......@@ -15,14 +15,27 @@
"""Entry point into the IDMS Linux installer from the commandline."""
import argparse
from idmslinux_installer.ili import Ili
def main():
"""Entry point for execution from the commandline."""
print('IDMS Linux Installer v{ili.__version__} - Copyright © 2019, AllWorldIT.\n')
# Start argument parser
argparser = argparse.ArgumentParser(add_help=False)
# Create argument group for optionals
optional_group = argparser.add_argument_group('Optional arguments')
optional_group.add_argument('-h', '--help', action="help", help="Show this help message and exit")
# Parse args
args = argparser.parse_args()
installer = Ili()
if __name__ == '__main__':
......@@ -68,7 +68,7 @@ class Ili:
# Set output callback
self.state.output_callback = self._status_callback
def test(self):
def start(self):
"""Testing during development."""
if not self.state.install_disks:
Supports Markdown
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