~gjabell/bmk

f3bccaf3084841e7ec64ed6d25e5aa9dbab29565 — Galen Abell 5 years ago 1827a3f
Improve argument descriptions
3 files changed, 3 insertions(+), 3 deletions(-)

M cmd/add.go
M cmd/list.go
M cmd/open.go
M cmd/add.go => cmd/add.go +1 -1
@@ 64,7 64,7 @@ bookmarks.`,
func init() {
	rootCmd.AddCommand(addCmd)

	addCmd.Flags().StringArrayVarP(&tags, "tag", "t", nil, "tag the bookmark with a number of tags")
	addCmd.Flags().StringArrayVarP(&tags, "tag", "t", nil, "tag the bookmark")
}

func isValidURL(str string) bool {

M cmd/list.go => cmd/list.go +1 -1
@@ 45,5 45,5 @@ description. Bookmarks will be filtered by the tags and/or description.`,
func init() {
	rootCmd.AddCommand(listCmd)

	listCmd.Flags().StringArrayVarP(&tags, "tag", "t", nil, "tag the bookmark with a number of tags")
	listCmd.Flags().StringArrayVarP(&tags, "tag", "t", nil, "list bookmarks matching the tag")
}

M cmd/open.go => cmd/open.go +1 -1
@@ 82,5 82,5 @@ file.`,
func init() {
	rootCmd.AddCommand(openCmd)

	openCmd.Flags().StringArrayVarP(&tags, "tag", "t", nil, "open URLs matching the given tag")
	openCmd.Flags().StringArrayVarP(&tags, "tag", "t", nil, "open bookmarks matching the tag")
}