Skip to content

Commit

Permalink
💬 Align help text
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenWaygate committed Aug 31, 2024
1 parent a15ddcf commit 1f41bfc
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 20 deletions.
3 changes: 1 addition & 2 deletions cmd/activity/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions cmd/channel/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
4 changes: 2 additions & 2 deletions cmd/comment/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}
4 changes: 2 additions & 2 deletions cmd/commentThread/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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")
}
3 changes: 1 addition & 2 deletions cmd/member/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "",
Expand Down
3 changes: 1 addition & 2 deletions cmd/playlist/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions cmd/playlistItem/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "",
Expand Down
3 changes: 1 addition & 2 deletions cmd/search/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "", "",
Expand Down
3 changes: 1 addition & 2 deletions cmd/subscription/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
3 changes: 1 addition & 2 deletions cmd/video/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -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", "", "",
Expand Down

0 comments on commit 1f41bfc

Please # to comment.