aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-10-12 07:02:45 -0700
committerFuwn <[email protected]>2024-10-12 07:04:15 -0700
commitc86889bf6fcda2031374fff8fdb74def19e4e014 (patch)
tree2cbea8587c25a33dd72df97d5c83bb521685274c
parent1b77c3d21a9d760dadb84edd5b90d2af749da7fa (diff)
downloadyae-c86889bf6fcda2031374fff8fdb74def19e4e014.tar.xz
yae-c86889bf6fcda2031374fff8fdb74def19e4e014.zip
refactor(yae): rename updated list flags
-rw-r--r--yae.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/yae.go b/yae.go
index ea11354..309819a 100644
--- a/yae.go
+++ b/yae.go
@@ -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))
}