Skip to content

It should be simpler to support piping input #447

@wendyliga

Description

@wendyliga

ArgumentParser version: 1.1.2.
Swift version:

swift-driver version: 1.45.2 Apple Swift version 5.6.1 (swiftlang-5.6.0.323.66 clang-1316.0.20.12)
Target: arm64-apple-macosx12.0

Checklist

  • If possible, I've reproduced the issue using the main branch of this package
  • I've searched for existing GitHub issues

Steps to Reproduce

a simple argument parser that could take an array of input

@main
struct Main: ParsableCommand {
    @Argument
    var path: [String]

    func run() throws {}
}

compile this and run it with pipeline echo **/*.jpg | .build/arm64-apple-macosx/debug/main
it seems that the stdout is not pass as stdin

Expected behavior

the stdout from lhs is passed to rhs

Actual behavior

Describe or copy/paste the behavior you observe.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions