We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The command class and the command action handler should also return the literal arguments array which is return by the parseFlags() method.
parseFlags()
deno run file.ts arg1 arg2 -- --flag1 val arg1
const { args, options, cmd, literal } = await new Command() // ... .parse( [ 'arg1', 'arg2', '--', '--flag1', 'val', 'arg1' ] ); console.log( literal ); // <-- [ '--flag1', 'val', 'arg1' ]
Provide also a way to access literal arguments inside a command action handler.
The text was updated successfully, but these errors were encountered:
feat(command): return literal arguments in .parse() method and ad…
literal
.parse()
385f38f
…d `.getLiteralArgs()` method (#26)
No branches or pull requests
The command class and the command action handler should also return the literal arguments array which is return by the
parseFlags()
method.deno run file.ts arg1 arg2 -- --flag1 val arg1
Provide also a way to access literal arguments inside a command action handler.
The text was updated successfully, but these errors were encountered: