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

Help screen errors #120

Open
ItsJamie9494 opened this issue Jan 7, 2020 · 4 comments
Open

Help screen errors #120

ItsJamie9494 opened this issue Jan 7, 2020 · 4 comments

Comments

@ItsJamie9494
Copy link

When running cat --help, I get a Node.js error.

This error appears on all cash programs, and seems to be related to the parser.

Error:

(node:13969) UnhandledPromiseRejectionWarning: undefined
(node:13969) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:13969) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@nfischer
Copy link
Collaborator

nfischer commented Jan 7, 2020

What version of node are you using? Which OS are you on?

@ItsJamie9494
Copy link
Author

ItsJamie9494 commented Jan 8, 2020

I'm on Linux, using Node v13.6.0

@nfischer
Copy link
Collaborator

I can repro with the same config:

$ nvm use --delete-prefix v13.6.0

$ npm install -g cash-cat

$ which -a cat
[PATH REDACTED]/.nvm/versions/node/v13.6.0/bin/cat
/bin/cat

$ [PATH REDACTED]/.nvm/versions/node/v13.6.0/bin/cat --help
Usage: cat [OPTION]... [FILE]...
Concatenate FILE(s), or standard input, to standard output.

  -A, --show-all           equivalent to -vET
  -b, --number-nonblank    number nonempty output lines, overrides -n
  -e                       equivalent to -vE
  -E, --show-ends          display $ at end of each line
  -n, --number             number all output lines
  -s, --squeeze-blank      suppress repeated empty output lines
  -t                       equivalent to -vT
  -T, --show-tabs          display TAB characters as ^I
  -v, --show-nonprinting   use ^ and M- notation, except for LFD and TAB
      --help               display this help and exit

With no FILE, or when FILE is -, read standard input.

Examples:
  cat f - g  Output f's contents, then standard input, then g's contents.
  cat        Copy standard input to standard output.

Report cat bugs to <https://github.com/dthree/cash>
Cash home page: <https://cash.js.org/>
(node:24024) UnhandledPromiseRejectionWarning: undefined
(node:24024) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:24024) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

I can only repro with the standalone executables (ex. cash-cat), not the interpreter (ex. cash).

@ItsJamie9494
Copy link
Author

Yes, it only affects the standalone executables.

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

2 participants