Skip to content

Explore ways to specify arguments with spaces into command parser #1901

@StayBlue

Description

@StayBlue

What part of Adonis is this related to?

Command

What are you suggesting?

As I was writing #1876, I noticed that if an argument has spaces, it becomes problematic relatively fast. Imagine if a team name is like this: The Team. If you tried passing that into the command parser, both "The" and "Team" would be treated as separate arguments.

As an alternative approach, it might be best to provide instead an option to wrap the argument in quotes to specify that it's one argument. Example: :team Guest "The Team".

Metadata

Metadata

Assignees

No one assigned

    Labels

    ⚡ commandSpecific Adonis commands✨ enhancementEnhancing or improving existing functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions