[mike@maginot]
This commit is contained in:
@@ -385,6 +385,9 @@ usage: dx [-n] [-d] [-r] [-t N] [path]
|
||||
--version
|
||||
--check-update look for a newer release
|
||||
--update download and install the newest release
|
||||
|
||||
dx looks for a new release once a day, in the background, and says so on
|
||||
stderr. DX_NO_UPDATE_CHECK=1 turns that off.
|
||||
`, version)
|
||||
}
|
||||
|
||||
@@ -426,6 +429,9 @@ func main() {
|
||||
os.Exit(1)
|
||||
}
|
||||
return
|
||||
case a == updateRefreshFlag: // der Hintergrundlauf, nicht in der Hilfe
|
||||
selfUpdate.refresh()
|
||||
return
|
||||
case a == "--number":
|
||||
o.byCount = true
|
||||
case a == "--dirs":
|
||||
@@ -507,6 +513,11 @@ func main() {
|
||||
if res.unreadbl > 0 {
|
||||
fmt.Fprintln(os.Stderr, cDark.Sprintf("dx: %d unreadable entries skipped", res.unreadbl))
|
||||
}
|
||||
// Kostet nichts: der Hinweis stammt aus dem Merkzettel, gefragt wird
|
||||
// höchstens einmal am Tag und dann im Hintergrund.
|
||||
if hint := selfUpdate.daily(); hint != "" {
|
||||
fmt.Fprintln(os.Stderr, cDark.Sprint(hint))
|
||||
}
|
||||
}
|
||||
|
||||
func mustNum(s string) int {
|
||||
|
||||
Reference in New Issue
Block a user