Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions projects/rocprofiler-sdk/source/bin/rocprofv3-avail.py
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,11 @@ def process_qualifiers(pmc):


def main(argv=None):
# If no arguments provided, show help and exit
if (argv is None and len(sys.argv) == 1) or (argv is not None and len(argv) == 0):
parse_arguments(["--help"])
return 0

ROCPROFV3_AVAIL_DIR = os.path.dirname(os.path.realpath(__file__))
ROCM_DIR = os.path.dirname(ROCPROFV3_AVAIL_DIR)
ROCPROF_LIST_AVAIL_TOOL_LIBRARY = (
Expand Down
5 changes: 5 additions & 0 deletions projects/rocprofiler-sdk/source/bin/rocprofv3.py
Original file line number Diff line number Diff line change
Expand Up @@ -1662,6 +1662,11 @@ def main(argv=None):
print(f" {key:>16}: {itr}")
return 0

# If no arguments provided, show help and exit
if (argv is None and len(sys.argv) == 1) or (argv is not None and len(argv) == 0):
parse_arguments(["--help"])
return 0

inp_args = (
parse_input(cmd_args.input) if getattr(cmd_args, "input") else [dotdict({})]
)
Expand Down
Loading