We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee9fea3 commit a6fc4ccCopy full SHA for a6fc4cc
src/commands/solid-command.ts
@@ -14,8 +14,9 @@ export interface IPreparedCommandOptions {
14
}
15
16
export function setOptionDefaults<T>(options: ICommandOptions) {
17
- options.fetch = fetch;
18
- options.verbose = false;
19
- options.logger = console;
+ if (!options.fetch) options.fetch = fetch;
+ if (!options.verbose) options.verbose = false;
+ if (!options.logger) options.logger = console;
20
+
21
return options as IPreparedCommandOptions & T
22
0 commit comments