Skip to content

Commit 48d5e6c

Browse files
authored
[rocprofiler-compute][bugfix] Correctly process -s/--specs (#3507)
* fix -s/--specs * remove non-critical fix
1 parent efcd3ab commit 48d5e6c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

projects/rocprofiler-compute/src/rocprof_compute_base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,7 @@ def sanitize(self) -> None:
148148
if self.__args.mode is None and not (
149149
getattr(self.__args, "list_metrics", False)
150150
or getattr(self.__args, "list_blocks", False)
151+
or getattr(self.__args, "specs", False)
151152
):
152153
self.__parser.print_help(sys.stderr)
153154
console_error(
@@ -213,6 +214,7 @@ def sanitize(self) -> None:
213214
and not getattr(self.__args, "list_available_metrics", False)
214215
and not getattr(self.__args, "list_sets", False)
215216
and not getattr(self.__args, "list_blocks", False)
217+
and not getattr(self.__args, "specs", False)
216218
):
217219
if self.__args.name is None and self.__args.output_directory == str(
218220
Path.cwd() / "workloads"

0 commit comments

Comments
 (0)