diff options
| author | Fuwn <[email protected]> | 2024-10-12 14:02:45 +0000 |
|---|---|---|
| committer | Fuwn <[email protected]> | 2024-10-12 14:04:15 +0000 |
| commit | f4c4784b4a5c72dc49a8383c6a85b29212bd399a (patch) | |
| tree | 2cbea8587c25a33dd72df97d5c83bb521685274c | |
| parent | refactor(yae): control logging through silent flag (diff) | |
| download | yae-f4c4784b4a5c72dc49a8383c6a85b29212bd399a.tar.xz yae-f4c4784b4a5c72dc49a8383c6a85b29212bd399a.zip | |
refactor(yae): rename updated list flags
| -rw-r--r-- | yae.go | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -203,12 +203,12 @@ func main() { ArgsUsage: "[name]", Flags: []cli.Flag{ &cli.BoolFlag{ - Name: "show-updated-only", - Usage: "Output a newline-seperated list of updated sources, silence other output", + Name: "output-updated-list", + Usage: "Output a newline-seperated list of updated sources, regardless of silent mode", }, &cli.BoolFlag{ - Name: "show-updated-only-formatted", - Usage: "Output a comma and/or ampersand list of updated sources, silence other output", + Name: "output-formatted-updated-list", + Usage: "Output a comma and/or ampersand list of updated sources, regardless of silent mode", }, &cli.BoolFlag{ Name: "force-hashed", @@ -249,11 +249,11 @@ func main() { } } - if c.Bool("show-updated-only") { + if c.Bool("output-updated-list") { for _, update := range updates { fmt.Println(update) } - } else if c.Bool("show-updated-only-formatted") { + } else if c.Bool("output-formatted-updated-list") { fmt.Println(lister(updates)) } |