@@ -10,6 +10,13 @@ import (
1010)
1111
1212func runGenerate (args []string , templatesFS embed.FS ) int {
13+ for _ , arg := range args {
14+ if arg == "--gtk" || arg == "--no-gtk" {
15+ fmt .Fprintf (os .Stderr , "Error: Unknown option: %s\n " , arg )
16+ return 1
17+ }
18+ }
19+
1320 // Parse flags
1421 mode , args := parseFlag (args , "--extract-mode" )
1522 if mode == "" {
@@ -19,23 +26,16 @@ func runGenerate(args []string, templatesFS embed.FS) int {
1926 noApply , args := hasFlag (args , "--no-apply" )
2027 outputPath , args := parseFlag (args , "--output" )
2128
22- // App include toggles. GTK is opt-in because it rewrites ~/.config/gtk-*/
23- // which many users have customised by hand. Everything else (zed, vscode,
24- // neovim) is opt-out and matches the GUI's default behaviour when those
25- // integrations are present.
26- includeGtk , args := hasFlag (args , "--gtk" )
27- noGtk , args := hasFlag (args , "--no-gtk" )
29+ // Editor integrations are opt-out and match the GUI defaults.
2830 noZed , args := hasFlag (args , "--no-zed" )
2931 noVscode , args := hasFlag (args , "--no-vscode" )
3032 noNeovim , args := hasFlag (args , "--no-neovim" )
31- _ = noGtk // gtk default is already off; flag exists for symmetry
3233
3334 if len (args ) == 0 {
3435 fmt .Fprintln (os .Stderr , "Error: Wallpaper path is required" )
35- fmt .Fprintln (os .Stderr , "Usage: aether --generate <wallpaper> [--extract-mode <mode>] [--light-mode] [--no-apply] [--output <path>] [--gtk] [-- no-zed] [--no-vscode] [--no-neovim]" )
36+ fmt .Fprintln (os .Stderr , "Usage: aether --generate <wallpaper> [--extract-mode <mode>] [--light-mode] [--no-apply] [--output <path>] [--no-zed] [--no-vscode] [--no-neovim]" )
3637 return 1
3738 }
38-
3939 wallpaperPath := args [0 ]
4040
4141 // Validate mode
@@ -100,7 +100,6 @@ func runGenerate(args []string, templatesFS embed.FS) int {
100100 }
101101
102102 settings := theme.Settings {
103- IncludeGtk : includeGtk ,
104103 IncludeZed : ! noZed ,
105104 IncludeVscode : ! noVscode ,
106105 IncludeNeovim : ! noNeovim ,
0 commit comments