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

Passing unknown command to lerna should print to stderr and have a non-zero exit code #1107

Closed
martijnthe opened this issue Nov 9, 2017 · 2 comments

Comments

@martijnthe
Copy link

Expected Behavior

$ yarn lerna bogus_cmd
yarn run v1.3.2
[REDACTED]/node_modules/.bin/lerna bogus_cmd
ERROR: Known command 'bogus_cmd' (or something along these lines)
✨  Done in 0.41s.
$ echo $?
1

Current Behavior

$ yarn lerna bogus_cmd
yarn run v1.3.2
[REDACTED]/node_modules/.bin/lerna bogus_cmd
✨  Done in 0.41s.
$ echo $?
0

Possible Solution

Seems obvious?

Steps to Reproduce (for bugs)

See above.

lerna.json

{
  "lerna": "2.4.0",
  "version": "0.7.0",
  "commands": {
  },
  "npmClient": "yarn",
  "useWorkspaces": true
}

lerna-debug.log

<!-- If you have a `lerna-debug.log` available, please paste it here -->
<!-- Otherwise, feel free to delete this <details> block -->

Context

Your Environment

Executable Version
lerna --version 2.4.0
yarn --version 1.3.2
node --version v8.1.3
OS Version
macOS Sierra 10.12.6
@evocateur
Copy link
Member

Duplicate of #1098

@evocateur evocateur marked this as a duplicate of #1098 Nov 15, 2017
@lock
Copy link

lock bot commented Dec 27, 2018

This thread has been automatically locked because there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Dec 27, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants