Skip to content

Commit de6e122

Browse files
author
Christopher Doris
committed
-X arguments use hyphens instead of underscores
1 parent f81d8a3 commit de6e122

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pysrc/juliacall/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ def init():
5050
def option(name, default=None, xkey=None, envkey=None):
5151
"""Get an option.
5252
53-
Options can be set as command line arguments '-X juliacall_{name}={value}' or as
53+
Options can be set as command line arguments '-X juliacall-{name}={value}' or as
5454
environment variables 'PYTHON_JULIACALL_{NAME}={value}'.
5555
"""
56-
k = xkey or 'juliacall_'+name.lower()
56+
k = xkey or 'juliacall-'+name.lower().replace('_', '-')
5757
v = sys._xoptions.get(k)
5858
if v is not None:
5959
return v, f'-X{k}={v}'

0 commit comments

Comments
 (0)