We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 018eee7 commit 51430eaCopy full SHA for 51430ea
lib/utils.js
@@ -57,6 +57,7 @@ module.exports = {
57
const fromArgs = this.raw[name]
58
if (typeof fromArgs !== 'undefined') {
59
value = fromArgs
60
+ break
61
}
62
63
test/index.js
@@ -207,3 +207,12 @@ test('options propogated to mri', t => {
207
208
t.is(config.port, port.toString())
209
})
210
+
211
+test('short form option works with mri default', t => {
212
+ const args = setupOptions()
213
+ args.option('port', 'The port on which the site will run')
214
215
+ const config = args.parse(argv, { mri: { default: { port: 3000 } } })
216
217
+ t.is(config.port, port)
218
+})
0 commit comments