Skip to content

Input files with hyphen (-) in filename not recognized #1

@hollodotme

Description

@hollodotme

Usage

$ convertio -f jpg ./some-image-with-hyphen.png

Expected result

The API will convert some-image-with-hyphen.png to some-image-with-hyphen.jpg.

Actual result

Error:
No readable input files

Reason

In class CLIOptions is a regex used that checks arguments against -(\w+) and if matching the argument is considered an option.


I fixed that and will provide a pull request in a couple of minutes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions