Skip to content

Commit

Permalink
remove dateFormat
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo4815162342 committed Feb 27, 2024
1 parent a80b175 commit 9e7dd66
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/cli/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ export interface CliConfig extends ConfigBase {
debug: boolean;
inline: boolean;
fileName: string;
dateFormat: string;
}

const now = 'now';
Expand Down Expand Up @@ -45,7 +44,6 @@ const commanderSchema = program
.option('-bp, --batch-pause <value>', 'Pause between batches in ms', Number, 1000)
.option('-ch, --cache', 'Use cache', false)
.option('-chpath, --cache-path <value>', 'Folder path for cache data', './.dukascopy-cache')
.option('-df, --date-format <value>', 'Date format', '')
.option('-r, --retries <value>', 'Number of retries for a failed artifact download', Number, 0)
.option('-rp, --retry-pause <value>', 'Pause between retries in milliseconds', Number, 500)
.option(
Expand Down Expand Up @@ -97,8 +95,7 @@ export function getConfigFromCliArgs(argv: NodeJS.Process['argv']) {
pauseBetweenRetriesMs: options.retryPause,
debug: options.debug,
inline: options.inline,
fileName: options.fileName,
dateFormat: options.dateFormat
fileName: options.fileName
};

const cliSchema: InputSchema<CliConfig> = {
Expand All @@ -108,8 +105,7 @@ export function getConfigFromCliArgs(argv: NodeJS.Process['argv']) {
silent: { type: 'boolean', required: false } as RuleBoolean,
debug: { type: 'boolean', required: false } as RuleBoolean,
inline: { type: 'boolean', required: false } as RuleBoolean,
fileName: { type: 'string', required: false } as RuleString,
dateFormat: { type: 'string', required: false } as RuleString
fileName: { type: 'string', required: false } as RuleString
}
};

Expand Down

0 comments on commit 9e7dd66

Please sign in to comment.