From 1f41bfc2e4d74f3a30cbea1f949fd93cea1c92a6 Mon Sep 17 00:00:00 2001 From: chaoqun <27287694+OpenWaygate@users.noreply.github.com> Date: Sat, 31 Aug 2024 22:25:38 +0800 Subject: [PATCH] :speech_balloon: Align help text --- cmd/activity/list.go | 3 +-- cmd/channel/list.go | 3 +-- cmd/comment/list.go | 4 ++-- cmd/commentThread/list.go | 4 ++-- cmd/member/list.go | 3 +-- cmd/playlist/list.go | 3 +-- cmd/playlistItem/list.go | 3 +-- cmd/search/list.go | 3 +-- cmd/subscription/list.go | 3 +-- cmd/video/list.go | 3 +-- 10 files changed, 12 insertions(+), 20 deletions(-) diff --git a/cmd/activity/list.go b/cmd/activity/list.go index c985cd1..435bbde 100644 --- a/cmd/activity/list.go +++ b/cmd/activity/list.go @@ -31,8 +31,7 @@ func init() { ) listCmd.Flags().BoolVarP(&home, "home", "H", true, "true or false") listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, - "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().BoolVarP(&mine, "mine", "M", true, "true or false") listCmd.Flags().StringVarP( diff --git a/cmd/channel/list.go b/cmd/channel/list.go index 03ebbf1..05c7d61 100644 --- a/cmd/channel/list.go +++ b/cmd/channel/list.go @@ -53,8 +53,7 @@ func init() { "Specify the maximum number of items that should be returned", ) listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, - "The maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().BoolVarP( &mine, "mine", "M", true, diff --git a/cmd/comment/list.go b/cmd/comment/list.go index 9b0e4f1..5960883 100644 --- a/cmd/comment/list.go +++ b/cmd/comment/list.go @@ -26,10 +26,10 @@ func init() { listCmd.Flags().StringSliceVarP(&ids, "ids", "i", []string{}, "Comma separated ids of comments") listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().StringVarP(&parentId, "parentId", "P", "", "Returns replies to the specified comment") listCmd.Flags().StringVarP(&textFormat, "textFormat", "t", "", "textFormatUnspecified, html(default) or plainText") - listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts of a comment") + listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts") listCmd.Flags().StringVarP(&output, "output", "o", "", "json or yaml") } diff --git a/cmd/commentThread/list.go b/cmd/commentThread/list.go index 2660abc..5a444a9 100644 --- a/cmd/commentThread/list.go +++ b/cmd/commentThread/list.go @@ -38,7 +38,7 @@ func init() { &channelId, "channelId", "c", "", "Returns the comment threads for all the channel comments", ) listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().StringVarP( &moderationStatus, "moderationStatus", "m", "", "published(default), heldForReview, likelySpam or rejected", @@ -47,6 +47,6 @@ func init() { listCmd.Flags().StringVarP(&searchTerms, "searchTerms", "s", "", "Search terms") listCmd.Flags().StringVarP(&textFormat, "textFormat", "t", "", "textFormatUnspecified or html(default)") listCmd.Flags().StringVarP(&videoId, "videoId", "v", "", "Returns the comment threads of the specified video") - listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Parts to be fetched") + listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts") listCmd.Flags().StringVarP(&output, "output", "o", "", "json, yaml or silent") } diff --git a/cmd/member/list.go b/cmd/member/list.go index d6bec03..abc9300 100644 --- a/cmd/member/list.go +++ b/cmd/member/list.go @@ -33,8 +33,7 @@ func init() { "Filter members in the results set to the ones that have access to a level", ) listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, - "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().StringVarP( &mode, "mode", "m", "", diff --git a/cmd/playlist/list.go b/cmd/playlist/list.go index 0385ded..e64d3f9 100644 --- a/cmd/playlist/list.go +++ b/cmd/playlist/list.go @@ -39,8 +39,7 @@ func init() { &hl, "hl", "l", "", "Return content in specified language", ) listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, - "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().BoolVarP(&mine, "mine", "M", true, "Return the playlists owned by the authenticated user") listCmd.Flags().StringVarP( diff --git a/cmd/playlistItem/list.go b/cmd/playlistItem/list.go index bb31820..86caff7 100644 --- a/cmd/playlistItem/list.go +++ b/cmd/playlistItem/list.go @@ -31,8 +31,7 @@ func init() { "Return the playlist items within the given playlist", ) listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, - "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().StringVarP( &videoId, "videoId", "v", "", diff --git a/cmd/search/list.go b/cmd/search/list.go index a8559fd..b3ed0f3 100644 --- a/cmd/search/list.go +++ b/cmd/search/list.go @@ -77,8 +77,7 @@ func init() { &locationRadius, "locationRadius", "", "Filter on distance from the location", ) listCmd.Flags().Int64Var( - &maxResults, "maxResults", 5, - "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", 5, "The maximum number of items that should be returned", ) listCmd.Flags().StringVar( &onBehalfOfContentOwner, "onBehalfOfContentOwner", "", "", diff --git a/cmd/subscription/list.go b/cmd/subscription/list.go index 0c42170..799eb0b 100644 --- a/cmd/subscription/list.go +++ b/cmd/subscription/list.go @@ -43,8 +43,7 @@ func init() { "Return the subscriptions to the subset of these channels that the authenticated user is subscribed to", ) listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, - "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().BoolVarP(&mine, "mine", "M", true, "Return the subscriptions of the authenticated user") listCmd.Flags().BoolVarP( diff --git a/cmd/video/list.go b/cmd/video/list.go index 8709f25..e7e8bc7 100644 --- a/cmd/video/list.go +++ b/cmd/video/list.go @@ -51,8 +51,7 @@ func init() { listCmd.Flags().Int64VarP(&maxHeight, "maxHeight", "H", 0, "") listCmd.Flags().Int64VarP(&maxWidth, "maxWidth", "W", 0, "") listCmd.Flags().Int64VarP( - &maxResults, "maxResults", "n", 5, - "Specifies the maximum number of items that should be returned", + &maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned", ) listCmd.Flags().StringVarP( &onBehalfOfContentOwner, "onBehalfOfContentOwner", "b", "", "",