summaryrefslogtreecommitdiff
diff options
authorJohn R. Lenton <jlenton@gmail.com>2016-09-10 15:44:25 +0100
committerJohn R. Lenton <jlenton@gmail.com>2016-09-10 15:44:25 +0100
commit96a3c5742446622e666a6bd99355ae3e2656aa96 (patch)
tree2aaec6bf020eedb88394f8eb0a208d178af9ac12
parentd2357bfda04304d5946cd771ebfa9c3aac2e5836 (diff)
after some discussion and thought, do not use os.Args[0] instead of just "snap"
-rw-r--r--cmd/snap/cmd_changes.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/cmd/snap/cmd_changes.go b/cmd/snap/cmd_changes.go
index 53f3fe60dc..afe9c79195 100644
--- a/cmd/snap/cmd_changes.go
+++ b/cmd/snap/cmd_changes.go
@@ -21,7 +21,6 @@ package main
import (
"fmt"
- "os"
"regexp"
"sort"
"time"
@@ -70,8 +69,8 @@ func (c *cmdChanges) Execute(args []string) error {
}
if allDigits(c.Positional.Snap) {
- // TRANSLATORS: the first %s, and %[1]s, is the argv[0] (typically "snap"); the last %s is the argument given by the user to 'changes'
- return fmt.Errorf(i18n.G(`%s changes command expects a snap name, try: %[1]s change %s`), os.Args[0], c.Positional.Snap)
+ // TRANSLATORS: the %s is the argument given by the user to "snap changes"
+ return fmt.Errorf(i18n.G(`"snap changes" command expects a snap name, try: "snap change %s"`), c.Positional.Snap)
}
if c.Positional.Snap == "everything" {