When accidentally using both the -m and -p flags in one command, I got the following error:
foo> ツ unleash -m -p
/usr/local/lib/node_modules/unleash/index.js:132
throw new Error('You\'re confusing me! Please don\'t pass more than one version type flag')
^
Error: You're confusing me! Please don't pass more than one version type flag
at /usr/local/lib/node_modules/unleash/index.js:132:13
at Array.forEach (native)
at Object.<anonymous> (/usr/local/lib/node_modules/unleash/index.js:129:19)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
The error message is useful, but it should be shown to the user in a more presentable fashion.
When accidentally using both the
-m
and-p
flags in one command, I got the following error:The error message is useful, but it should be shown to the user in a more presentable fashion.