Spaced options with @sapphire/lexure
How do I get options that contains space? I tried add the options with quotes, but it doesn't work. Detailed code: https://runkit.com/zenshibata/sapphire-lexure-test
RunKit
RunKit
RunKit notebooks are interactive javascript playgrounds connected to a complete node environment right in your browser. Every npm module pre-installed.
9 Replies
It doesn't look like that's implemented. This is the logic that parses options (assuming you're using
PrefixedStrategy
)
https://github.com/sapphiredev/utilities/blob/a05654bf10cac4fda0e9e327e5616397e33832f1/packages/lexure/src/lib/parser/strategies/PrefixedStrategy.ts#L25-L46GitHub
utilities/packages/lexure/src/lib/parser/strategies/PrefixedStrateg...
Common JavaScript utilities for Sapphire Projects. Contribute to sapphiredev/utilities development by creating an account on GitHub.
I suggest that you extend that class to implement that functionality.
I also suggest you reuse functionality to parse quoted parameters from Lexer
any chance that it would be implemented by the devs? should i open issue?
That would be a @Developers question
or should i open pr then
You can open a Pr yes
Don't we have support for it tho o.o
Oh
Options with quotes
@kyra 🩵🩷🤍🩷🩵 pls