Commit 82227444 authored by Roman Alifanov's avatar Roman Alifanov

some fixes

parent 016024e2
......@@ -224,25 +224,11 @@ func main() {
Usage: "Unified theme switcher for desktop environments",
Flags: []cli.Flag{
&cli.BoolFlag{
Name: "force-file-reaction",
Aliases: []string{"f"},
Usage: "Force reaction to config file changes",
},
&cli.BoolFlag{
Name: "help",
Aliases: []string{"h"},
Usage: "Show this help message",
Name: "force-file-reaction", Aliases: []string{"f"},
Usage: "Force reaction to config file changes",
},
},
Action: func(ctx context.Context, cmd *cli.Command) error {
if cmd.Bool("help") {
fmt.Println("Usage:", cmd.Name, "[options]")
fmt.Println("Options:")
fmt.Println(" --help, -h Show this help message")
fmt.Println(" --force-file-reaction, -f Force reaction to config file changes")
return nil
}
forceFileReaction := cmd.Bool("force-file-reaction")
configPath, err := getConfigPath()
if err != nil {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment