Skip to content

Commit

Permalink
fix(cli): connect cli option to config system
Browse files Browse the repository at this point in the history
  • Loading branch information
yamadashy committed Nov 5, 2024
1 parent e24939f commit 3215f9d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/cli/actions/defaultAction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ const buildCliConfig = (options: CliOptions): RepomixConfigCli => {
if (options.outputShowLineNumbers !== undefined) {
cliConfig.output = { ...cliConfig.output, showLineNumbers: options.outputShowLineNumbers };
}
if (options.copyToClipboard) {
cliConfig.output = { ...cliConfig.output, copyToClipboard: options.copyToClipboard };
if (options.copy) {
cliConfig.output = { ...cliConfig.output, copyToClipboard: options.copy };
}
if (options.style) {
cliConfig.output = { ...cliConfig.output, style: options.style.toLowerCase() as RepomixOutputStyle };
Expand Down
1 change: 1 addition & 0 deletions src/cli/cliRun.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ export interface CliOptions extends OptionValues {
include?: string;
ignore?: string;
config?: string;
copy?: boolean;
verbose?: boolean;
topFilesLen?: number;
outputShowLineNumbers?: boolean;
Expand Down

0 comments on commit 3215f9d

Please sign in to comment.