Skip to content

-d seems to have no effect #1

@adarwoo

Description

@adarwoo

Looking at the source code, the sets 'opts' as a dict - but does not use it any further.
Was the intention to allow defining some tokens from the command line?

Example:
@main
hello {name}

$ tproc --define name=bill test.tp

...
value = eval(value_string, self._namespace)
File "", line 1, in
NameError: name 'name' is not defined

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions