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

Commander's description is colliding with --description arg #50

Open
ktalebian opened this issue Mar 13, 2021 · 0 comments
Open

Commander's description is colliding with --description arg #50

ktalebian opened this issue Mar 13, 2021 · 0 comments

Comments

@ktalebian
Copy link

It looks like commander's description of the command and the JIRA argument --description are colliding. For example, if you were to console.log options['description'] here https://github.com/danshumaker/jira-cli/blob/master/bin/jira.js#L284, then you'll see the value is a [Function].

The end result is if you were to run jira new KEY, at this line https://github.com/danshumaker/jira-cli/blob/master/lib/jira/new.js#L294 options[eachFieldKey] for eachFieldKey = description, this comes out as true because of the [Function] and so the CLI does not ask for a description and tries to create a JIRA ticket without a description field which causes a 400 because this field is required.

I tried making this required in every possible way without any success.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant