Skip to content

Issue when using - as stdin and stdout #213

Open
@carstencodes

Description

@carstencodes

Hi,

thanks for your nice work.

I have an issue when I declare my arguments as follows:

-f --format (output format)
-o --output (output file, - is supported for using stdout)
input-file (input file, - is supported for stdin)

But when I run my app as follows,

app -f json -o - input.file

then - is used as input-file and input.file is bound to -o.

This is rather unexpected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Customer ReportedBugs reported by customersbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions