1. Updating argparse commands so they include flags

2. Create check_argparse which allows us to check which flags are or are not included in argparse statements.

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-09-21 16:13:07 -07:00
parent e64d357fb1
commit 4e7e8b9360
27 changed files with 182 additions and 59 deletions

View File

@@ -318,7 +318,10 @@ class MultiPsk(Realm):
def main():
parser = argparse.ArgumentParser(description="lanforge webpage download Test Script")
parser = argparse.ArgumentParser(
prog="lf_multipsk.py",
formatter_class=argparse.RawTextHelpFormatter,
description="lanforge webpage download Test Script")
parser.add_argument('--mgr', help='hostname for where LANforge GUI is running', default='localhost')
parser.add_argument('--mgr_port', help='port LANforge GUI HTTP service is running on', default=8080)
parser.add_argument('--ssid', help='WiFi SSID for client to associate to')