Formatting cruft
Signed-off-by: coleramos425 <colramos@amd.com>
[ROCm/rocprofiler-compute commit: b3df8b9032]
This commit is contained in:
@@ -171,7 +171,7 @@ def run_gui(args, runs):
|
||||
args.verbose,
|
||||
args,
|
||||
)
|
||||
if(args.random_port):
|
||||
if args.random_port:
|
||||
app.run_server(debug=False, host="0.0.0.0", port=random.randint(1024, 49151))
|
||||
else:
|
||||
app.run_server(debug=False, host="0.0.0.0", port=args.gui)
|
||||
@@ -285,7 +285,7 @@ def analyze(args):
|
||||
if args.gui:
|
||||
run_gui(args, runs)
|
||||
else:
|
||||
if(args.random_port):
|
||||
if args.random_port:
|
||||
print("ERROR: --gui flag required to enable --random-port")
|
||||
sys.exit(1)
|
||||
run_cli(args, runs)
|
||||
|
||||
@@ -490,5 +490,5 @@ def parse(my_parser):
|
||||
analyze_group.add_argument(
|
||||
"--random-port",
|
||||
action="store_true",
|
||||
help="\t\tRandomly generate a port to launch GUI application.\n\t\tRegistered Ports range inclusive (1024-49151)."
|
||||
help="\t\tRandomly generate a port to launch GUI application.\n\t\tRegistered Ports range inclusive (1024-49151).",
|
||||
)
|
||||
|
||||
Fai riferimento in un nuovo problema
Block a user