Skip to content

Commit 93ce5d2

Browse files
authored
fix: update field access after CommonArgs refactoring (fslongjin#24)
1 parent e1bce7b commit 93ce5d2

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ async fn handle_commit_command(
5454
}
5555

5656
// 合并 auto_commit 参数
57-
let auto_commit = args.commit || config.auto_commit;
58-
let commit_args = if args.commit_args.is_empty() {
57+
let auto_commit = args.common.commit || config.auto_commit;
58+
let commit_args = if args.common.commit_args.is_empty() {
5959
&config.commit_args
6060
} else {
61-
&args.commit_args
61+
&args.common.commit_args
6262
};
6363

6464
// 确定是否启用文本包装 (CLI 参数优先级高于配置)

0 commit comments

Comments
 (0)