Repository navigation
[ENHANCEMENT] print double dash for long aliases in availableOptions - #5380
Conversation
|
tests will fail as some existing options will be changed by this (in the printed help) example test failure: --live-reload-port (Number) (Defaults to port number within [49152...65535])
- aliases: --lrp <value>
+ aliases: -lrp <value>before going in and changing the tests I'd like to know if the ember-cli team is ok with this change or if the current is intended behaviour and should be kept as is. another option would be to consider printing thanks! |
|
thanks @stefanpenner , if we set the limit to 4 chars instead of one the only help that would change are for the |
|
Ya, I agree that this is a good idea. |
note: presently if one alias for the availableOptions is a long word the help function for that command will still print the option with a single dash although the `--` version seems to work fine i.e. https://github.com/ember-cli/ember-cli/blob/282641ba662292afb40cb88cdf31557a3e4cc6b7/lib%2Fcommands%2Fbuild.js#L13 will be printed as `-dev` even if also `--dev` is supported. before: aliases: -a <value>, -long-a <value>, -b (--test-option=c) after: aliases: -a <value>, --long-a <value>, -b (--test-option=c)
5929f0c to
d05fcd0
Compare
|
@stefanpenner @rwjblue appveyor is still running but I think we're good I settled on a 4 char limit, let me know if that sounds good thanks! |
|
lgtm 👍 |
|
@homu r+ |
|
📌 Commit d05fcd0 has been approved by |
…nner [ENHANCEMENT] print double dash for long aliases in availableOptions Presently if one alias for `availableOptions` is a long word the help function for that command will still print the option with a single dash although the `--` version works as well. i.e. https://github.com/ember-cli/ember-cli/blob/282641ba662292afb40cb88cdf31557a3e4cc6b7/lib%2Fcommands%2Fbuild.js#L13 will be printed as `-dev` even if also `--dev` is supported. before this patch: ``` aliases: -a <value>, -long-a <value>, -b (--test-option=c), -long-b (--test-option=c) ``` after: ``` aliases: -a <value>, --long-a <value>, -b (--test-option=c), --long-b (--test-option=c) ```
|
💔 Test failed - status |
|
@homu retry |
…nner [ENHANCEMENT] print double dash for long aliases in availableOptions Presently if one alias for `availableOptions` is a long word the help function for that command will still print the option with a single dash although the `--` version works as well. i.e. https://github.com/ember-cli/ember-cli/blob/282641ba662292afb40cb88cdf31557a3e4cc6b7/lib%2Fcommands%2Fbuild.js#L13 will be printed as `-dev` even if also `--dev` is supported. before this patch: ``` aliases: -a <value>, -long-a <value>, -b (--test-option=c), -long-b (--test-option=c) ``` after: ``` aliases: -a <value>, --long-a <value>, -b (--test-option=c), --long-b (--test-option=c) ```
|
☀️ Test successful - status |
Presently if one alias for
availableOptionsis a long word the help function for that command will still print the option with a single dash although the--version works as well.i.e.
ember-cli/lib/commands/build.js
Line 13 in 282641b
will be printed as
-deveven if also--devis supported.before this patch:
after: