Skip to content

Commit cf8853f

Browse files
jdxclaude
andcommitted
fix(init): sort -f/--force before -g/--global to fix CLI ordering test
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c603a27 commit cf8853f

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/commands/init.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ use std::collections::HashMap;
99
#[derive(Debug, Args)]
1010
#[command(visible_alias = "i")]
1111
pub struct InitCommand {
12-
/// Initialize the global config file (~/.config/fnox/config.toml)
13-
#[arg(short = 'g', long)]
14-
global: bool,
15-
1612
/// Overwrite existing configuration file
1713
#[arg(short, long)]
1814
force: bool,
1915

16+
/// Initialize the global config file (~/.config/fnox/config.toml)
17+
#[arg(short = 'g', long)]
18+
global: bool,
19+
2020
/// Skip the interactive wizard and create a minimal config
2121
#[arg(long)]
2222
skip_wizard: bool,

0 commit comments

Comments
 (0)