Details
-
Bug
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
None
-
None
-
None
-
All
-
Patch
Description
When doing an npm install cordova, and then typing cordova -v, only the version number should be outputted. It's strange and seemingly unique behavior to show the telemetry warning.
There are some issues on the ionic CLI team's github page (https://github.com/driftyco/ionic-cli/issues/1376 and https://github.com/driftyco/ionic-cli/issues/1175) with a PR to regex parse it (https://github.com/driftyco/ionic-app-lib/pull/141) from ionic's end, but I actually don't think that should be necessary.
Feel free to disagree and close this, but I'm not aware of any other npm package that outputs anything other than the version number with -v / --version.
If the telemetry warning is important, it might take longer to resolve the issue. But in my mind that's a separate issue, perhaps remove the telemetry warning entirely from -v output, and then open a new issue about the telemetry warning...?