Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cli command option --args seems not working. #1233

Open
lukaszspaczynski opened this issue Dec 6, 2023 · 1 comment
Open

Cli command option --args seems not working. #1233

lukaszspaczynski opened this issue Dec 6, 2023 · 1 comment

Comments

@lukaszspaczynski
Copy link

Passing args through the command line seems not working.

Command:
sourcery --config .sourcery.yml --args arg1=val1

Config:

configurations:
  - sources:
      - "./"
    templates:
      - "./template.stencil"
    output:
      "./gen.swift"

Template:
{{argument.arg1}}

Result:
arg1 in template is not present.

@krzysztofzablocki
Copy link
Owner

don't mix config with command line arguments, either one or the other

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants