Repository navigation
Closed
Labels
enhancementNew feature or requesttechnical-debtRefactoring, linting & tidyingui/uxUser interface/experience
Description
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 #362
Lines 473 to 476 in 60ff630
| .default('cloud-gpu') | |
| .describe('cloud-gpu', 'GPU type.') | |
| .choices('cloud-gpu', ['nogpu', 'k80', 'v100', 'tesla']) | |
| .coerce('cloud-gpu-type', (val) => (val === 'nogpu' ? null : val)) |
🎲 Random use of implicit .default('option') versus omitting it completely
...with the only difference being {option: undefined} versus {} in the resulting object.
Line 460 in 60ff630
| .default('cloud') |
🙈 Interleaved builder function calls for different options
cml/bin/cml/tensorboard-dev.js
Lines 135 to 141 in 60ff630
| .default('file') | |
| .describe( | |
| 'file', | |
| 'Append the output to the given file. Create it if does not exist.' | |
| ) | |
| .describe('rm-watermark', 'Avoid CML watermark.') | |
| .alias('file', 'f'); |
🚯 Incomplete option definitions with no effect
cml/bin/cml/tensorboard-dev.js
Line 126 in 60ff630
| .default('plugins') |
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requesttechnical-debtRefactoring, linting & tidyingui/uxUser interface/experience
Activity
[-]Replace yargs builder functions by builder objects on subcommands[/-][+]Convert yargs builder function to options object on subcommands[/+]