Skip to content

Commit 9033cfd

Browse files
committed
Applies @bertwesarg suggestions.
1 parent 4150e1d commit 9033cfd

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

scorep/__main__.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,12 +46,12 @@ def scorep_main(argv=None):
4646
no_instrumenter = True
4747
elif elem == "--noinstrumenter":
4848
no_instrumenter = True
49-
elif elem == "--io=runtime:posix" or elem == "--io=posix":
49+
elif elem in ["--io=runtime:posix", "--io=posix"]:
50+
print_err(f"scorep: Warning: The option '{elem}' is deprecated.")
5051
if "SCOREP_IO_POSIX" in os.environ:
51-
print_err("scorep: Warning: The option '--io=runtime:posix' is deprecated.")
52-
print_err(" Please set the environment variable 'SCOREP_IO_POSIX=true' instead.")
52+
print_err(" Will not overwrite existing value for environment variable "
53+
f"'SCOREP_IO_POSIX={os.environ['SCOREP_IO_POSIX']}'.")
5354
else:
54-
print_err("scorep: The option '--io=runtime:posix' is deprecated. ")
5555
print_err(" The environment variable 'SCOREP_IO_POSIX=true' is set and will be used.")
5656
os.environ["SCOREP_IO_POSIX"] = "true"
5757
elif "--instrumenter-type" in elem:

0 commit comments

Comments
 (0)