|
|
@ -1037,11 +1037,10 @@ external dependencies (including libraries) must go to "dependencies".''') |
|
|
|
|
|
|
|
|
|
|
|
raise InterpreterException('Tried to access unknown option "%s".' % optname) |
|
|
|
raise InterpreterException('Tried to access unknown option "%s".' % optname) |
|
|
|
|
|
|
|
|
|
|
|
@stringArgs |
|
|
|
@typed_pos_args('get_option', str) |
|
|
|
@noKwargs |
|
|
|
@noKwargs |
|
|
|
def func_get_option(self, nodes, args, kwargs): |
|
|
|
def func_get_option(self, nodes: mparser.BaseNode, args: T.Tuple[str], |
|
|
|
if len(args) != 1: |
|
|
|
kwargs: 'TYPE_kwargs') -> T.Union[coredata.UserOption, 'TYPE_var']: |
|
|
|
raise InterpreterException('Argument required for get_option.') |
|
|
|
|
|
|
|
optname = args[0] |
|
|
|
optname = args[0] |
|
|
|
if ':' in optname: |
|
|
|
if ':' in optname: |
|
|
|
raise InterpreterException('Having a colon in option name is forbidden, ' |
|
|
|
raise InterpreterException('Having a colon in option name is forbidden, ' |
|
|
|