Skip to content

Unable to use --loop or --expr flags #52

@ryansname

Description

@ryansname

I've tried copy pasting the scripts in the readme but get the following output:

echo Hello | cargo script --loop 'let mut n=0; move |l| {n+=1; println!("{:>6}: {}",n,l.trim_right())}'
error: The argument '--loop' cannot be used with one or more of the other specified arguments

USAGE:
    cargo script [FLAGS OPTIONS] [--] <script> <args>...

For more information try --help

The same thing occurs for -e:

cargo script -e 'println!("hello");'
error: The argument '--expr' cannot be used with one or more of the other specified arguments

USAGE:
    cargo script [FLAGS OPTIONS] [--] <script> <args>...

For more information try --help

Env:
Version: 0.2.8
OS: Archlinux
Shell: bash and zsh

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