Skip to content
New issue

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 "\n" character is not a valid argument separator. #19

Open
GhomKrosmonaute opened this issue Dec 19, 2021 · 0 comments
Open

The "\n" character is not a valid argument separator. #19

GhomKrosmonaute opened this issue Dec 19, 2021 · 0 comments
Assignees
Labels
bug Something isn't working documentation Improvements or additions to documentation

Comments

@GhomKrosmonaute
Copy link
Collaborator

If you have the following command type :

import * as app from "../app.js"

export default new app.Command({
  name: "hello",
  channelType: "all",
  description: "Say hello to a person",
  positional: [
    {
      name: "firstname",
      description: "First name",
    },
    {
      name: "lastname",
      description: "Last name",
    },
  ],
  async run(message) {
    return message.send(`Hello ${message.args.firstname} ${message.args.lastname}`);
  },
})

Its use could look like !hello Camille Abella and scatter the positionables over several lines should be possible, unfortunately the line breaks are not considered by the Yargs parser as valid argument separators.

@GhomKrosmonaute GhomKrosmonaute added bug Something isn't working documentation Improvements or additions to documentation labels Dec 19, 2021
@GhomKrosmonaute GhomKrosmonaute self-assigned this Dec 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant