Verified Commit 5c931588 authored by Hines, Jesse's avatar Hines, Jesse
Browse files

Allow passing cli_args explicitly

parent 7c5f9996
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -31,7 +31,7 @@ CLI_CONFIG = SettingsConfigDict(
)


def main():
def main(cli_args: list[str] | None = None):
    parser = argparse.ArgumentParser(
        description="""
            ExaDigiT Resource Allocator & Power Simulator (RAPS)
@@ -153,7 +153,7 @@ def main():

    # TODO: move telemetry and other misc scripts into here

    args = parser.parse_args()
    args = parser.parse_args(cli_args)
    args.func(args)