Browse Source

rework README/-h usage text

Be a bit more helpful with package names and version codes.
pull/44/head
Daniel Martí 7 years ago
parent
commit
d9e1bb5f11
  1. 9
      README.md
  2. 12
      main.go

9
README.md

@ -36,8 +36,13 @@ Install an app:
uninstall <appid...> Uninstall an app
defaults Reset to the default settings
A specific version of an app can be selected by following the appid with an
colon (:) and the version code of the app to select.
An appid is just an app's unique package name. A specific version of an app can
be selected by following the appid with a colon and the version code. The
'search' and 'show' commands can be used to find these strings. For example:
$ fdroidcl search redreader
$ fdroidcl show org.quantumbadger.redreader
$ fdroidcl install org.quantumbadger.redreader:85
### Config

12
main.go

@ -136,8 +136,16 @@ func init() {
fmt.Fprintf(os.Stderr, " %s%s %s\n", c.UsageLine,
strings.Repeat(" ", maxUsageLen-len(c.UsageLine)), c.Short)
}
fmt.Fprintf(os.Stderr, "\nA specific version of an app can be selected by following the appid with an colon (:) and the version code of the app to select.\n")
fmt.Fprintf(os.Stderr, "\nUse %s <command> -h for more info\n", cmdName)
fmt.Fprintf(os.Stderr, `
An appid is just an app's unique package name. A specific version of an app can
be selected by following the appid with a colon and the version code. The
'search' and 'show' commands can be used to find these strings. For example:
$ fdroidcl search redreader
$ fdroidcl show org.quantumbadger.redreader
$ fdroidcl install org.quantumbadger.redreader:85
`)
fmt.Fprintf(os.Stderr, "\nUse %s <command> -h for more information.\n", cmdName)
}
}

Loading…
Cancel
Save