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

deno task error passing values #14514

Closed
oscarotero opened this issue May 6, 2022 · 1 comment · Fixed by #14567
Closed

deno task error passing values #14514

oscarotero opened this issue May 6, 2022 · 1 comment · Fixed by #14567
Assignees
Labels
bug Something isn't working

Comments

@oscarotero
Copy link

oscarotero commented May 6, 2022

Hi, I have the following task in deno.json:

{
  "tasks": {
    "build": "deno run -A https://deno.land/x/lume@v1.8.0/ci.ts"
  }
}

So I can run deno task build to build a website with Lume.

I want to pass options to the build task, for example -s (to start a local server): deno task build -s works fine.

But if I pass a value to change the output url with deno task build --location="https://example.com" I get the following error:

error: Found argument '--location' which wasn't expected, or isn't valid in this context

        If you tried to supply `--location` as a value rather than a flag, use `-- --location`

USAGE:
    deno task <task>

For more information try --help

If the argument -s is passed before --location:

deno task build -s --location="https://example.com"

it works fine, but if it's passed after:

deno task build --location="https://example.com" -s

I get that error. Maybe there's an issue parsing the double dash --.

@bartlomieju bartlomieju added the bug Something isn't working label May 6, 2022
@dsherret
Copy link
Member

dsherret commented May 8, 2022

Looks like clap-rs/clap#1538 and clap-rs/clap#3389 :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants