Skip to content

No input files when the path is relative on windows .\ #94

@oom-

Description

@oom-

It seems to not detect correctly input files when it's relative (powershell):

npx sharp-cli tint 600 --input .\test.png              
Missing dependent arguments:
input -> output

Specify --help for available options

then:

npx sharp-cli tint 600 --input .\test.png -o .\testsmall.png
No input files

Specify --help for available options

or

npx sharp-cli tint 600 --input .\pcb-traces.png -o .\testsmall.png
No input files

this works:

 npx sharp-cli resize 200 200 -i logo.png -o logo-test.png

this works:

 npx sharp-cli resize 200 200 -i ./logo.png -o ./logo-test.png

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