jsr-io / jsr-npm

A cli tool to make installing packages form jsr.io in node easy
https://npmjs.com/package/jsr
MIT License
100 stars 12 forks source link

error: unexpected argument '--verbose' found #78

Closed mhart closed 5 months ago

mhart commented 5 months ago

I can't figure out how to turn verbose debugging on:

$ npx jsr --version
0.12.2

$ npx jsr --help
...
            --verbose  Show additional debugging information.
...
$ npx jsr --verbose
node:internal/util/parse_args/parse_args:98
    throw new ERR_PARSE_ARGS_UNKNOWN_OPTION(
    ^

TypeError [ERR_PARSE_ARGS_UNKNOWN_OPTION]: Unknown option '--verbose'. To specify a positional argument starting with a '-', place it at the end of the command after '--', as in '-- "--verbose"
$ npx jsr publish --verbose
error: unexpected argument '--verbose' found

Usage: deno publish --unstable-bare-node-builtins --unstable-sloppy-imports --unstable-byonm --no-check[=<NO_CHECK_TYPE>]

For more information, try '--help'.

Child process exited with: 1
mhart commented 5 months ago

Hmmm, but does --verbose actually do anything? It's still in the help output: https://github.com/jsr-io/jsr-npm/blob/4f1544c12c61f596757120bbe7657d44860de1dd/src/bin.ts#L77

mhart commented 5 months ago

Looks like maybe it's supposed to be debug? https://github.com/jsr-io/jsr-npm/blob/4f1544c12c61f596757120bbe7657d44860de1dd/src/bin.ts#L187

marvinhagemeister commented 5 months ago

The publish command shells out to deno publish under the hood. It doesn't support a --verbose or --debug flag at the moment.