Convert yargs builder function to options object on subcommands #708
Labels
enhancement
New feature or request
technical-debt
Refactoring, linting & tidying
ui/ux
User interface/experience
Follow-up of #703
The current builder pattern allows different settings of the same option to be sprinkled between the others, and we haven't missed the opportunity to have a few options spread all over the place. We should proabably use a single
options
object instead.Editor's picks
🧐 Nonexistent
--cloud-gpu-type
option, giving us trouble since #362cml/bin/cml/runner.js
Lines 473 to 476 in 60ff630
🎲 Random use of implicit
.default('option')
versus omitting it completely...with the only difference being
{option: undefined}
versus{}
in the resulting object.cml/bin/cml/runner.js
Line 460 in 60ff630
🙈 Interleaved builder function calls for different options
cml/bin/cml/tensorboard-dev.js
Lines 135 to 141 in 60ff630
🚯 Incomplete option definitions with no effect
cml/bin/cml/tensorboard-dev.js
Line 126 in 60ff630
The text was updated successfully, but these errors were encountered: