Skip to content

Cannot correclty parse the parameter like sake echo "123 456" containing whitespace chars. #39

@SSBun

Description

@SSBun
 public static var echo: Command {
        Command(
            description: "Echo any user input",
            run: { context in
                guard let input = context.arguments.first else { return }
                
                print("\(input)")
            }
        )
    }
sake echo "123 456"

The output of the command is "123". I think it should return "123 456". The argument parser always use the whitespace to seperate params.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions