Skip to content

Commit 1f41bfc

Browse files
committed
💬 Align help text
1 parent a15ddcf commit 1f41bfc

File tree

10 files changed

+12
-20
lines changed

10 files changed

+12
-20
lines changed

cmd/activity/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ func init() {
3131
)
3232
listCmd.Flags().BoolVarP(&home, "home", "H", true, "true or false")
3333
listCmd.Flags().Int64VarP(
34-
&maxResults, "maxResults", "n", 5,
35-
"Specifies the maximum number of items that should be returned",
34+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
3635
)
3736
listCmd.Flags().BoolVarP(&mine, "mine", "M", true, "true or false")
3837
listCmd.Flags().StringVarP(

cmd/channel/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,7 @@ func init() {
5353
"Specify the maximum number of items that should be returned",
5454
)
5555
listCmd.Flags().Int64VarP(
56-
&maxResults, "maxResults", "n", 5,
57-
"The maximum number of items that should be returned",
56+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
5857
)
5958
listCmd.Flags().BoolVarP(
6059
&mine, "mine", "M", true,

cmd/comment/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,10 @@ func init() {
2626

2727
listCmd.Flags().StringSliceVarP(&ids, "ids", "i", []string{}, "Comma separated ids of comments")
2828
listCmd.Flags().Int64VarP(
29-
&maxResults, "maxResults", "n", 5, "Specifies the maximum number of items that should be returned",
29+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
3030
)
3131
listCmd.Flags().StringVarP(&parentId, "parentId", "P", "", "Returns replies to the specified comment")
3232
listCmd.Flags().StringVarP(&textFormat, "textFormat", "t", "", "textFormatUnspecified, html(default) or plainText")
33-
listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts of a comment")
33+
listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts")
3434
listCmd.Flags().StringVarP(&output, "output", "o", "", "json or yaml")
3535
}

cmd/commentThread/list.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ func init() {
3838
&channelId, "channelId", "c", "", "Returns the comment threads for all the channel comments",
3939
)
4040
listCmd.Flags().Int64VarP(
41-
&maxResults, "maxResults", "n", 5, "Specifies the maximum number of items that should be returned",
41+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
4242
)
4343
listCmd.Flags().StringVarP(
4444
&moderationStatus, "moderationStatus", "m", "", "published(default), heldForReview, likelySpam or rejected",
@@ -47,6 +47,6 @@ func init() {
4747
listCmd.Flags().StringVarP(&searchTerms, "searchTerms", "s", "", "Search terms")
4848
listCmd.Flags().StringVarP(&textFormat, "textFormat", "t", "", "textFormatUnspecified or html(default)")
4949
listCmd.Flags().StringVarP(&videoId, "videoId", "v", "", "Returns the comment threads of the specified video")
50-
listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Parts to be fetched")
50+
listCmd.Flags().StringSliceVarP(&parts, "parts", "p", []string{"id", "snippet"}, "Comma separated parts")
5151
listCmd.Flags().StringVarP(&output, "output", "o", "", "json, yaml or silent")
5252
}

cmd/member/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,7 @@ func init() {
3333
"Filter members in the results set to the ones that have access to a level",
3434
)
3535
listCmd.Flags().Int64VarP(
36-
&maxResults, "maxResults", "n", 5,
37-
"Specifies the maximum number of items that should be returned",
36+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
3837
)
3938
listCmd.Flags().StringVarP(
4039
&mode, "mode", "m", "",

cmd/playlist/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,7 @@ func init() {
3939
&hl, "hl", "l", "", "Return content in specified language",
4040
)
4141
listCmd.Flags().Int64VarP(
42-
&maxResults, "maxResults", "n", 5,
43-
"Specifies the maximum number of items that should be returned",
42+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
4443
)
4544
listCmd.Flags().BoolVarP(&mine, "mine", "M", true, "Return the playlists owned by the authenticated user")
4645
listCmd.Flags().StringVarP(

cmd/playlistItem/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,7 @@ func init() {
3131
"Return the playlist items within the given playlist",
3232
)
3333
listCmd.Flags().Int64VarP(
34-
&maxResults, "maxResults", "n", 5,
35-
"Specifies the maximum number of items that should be returned",
34+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
3635
)
3736
listCmd.Flags().StringVarP(
3837
&videoId, "videoId", "v", "",

cmd/search/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,7 @@ func init() {
7777
&locationRadius, "locationRadius", "", "Filter on distance from the location",
7878
)
7979
listCmd.Flags().Int64Var(
80-
&maxResults, "maxResults", 5,
81-
"Specifies the maximum number of items that should be returned",
80+
&maxResults, "maxResults", 5, "The maximum number of items that should be returned",
8281
)
8382
listCmd.Flags().StringVar(
8483
&onBehalfOfContentOwner, "onBehalfOfContentOwner", "", "",

cmd/subscription/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ func init() {
4343
"Return the subscriptions to the subset of these channels that the authenticated user is subscribed to",
4444
)
4545
listCmd.Flags().Int64VarP(
46-
&maxResults, "maxResults", "n", 5,
47-
"Specifies the maximum number of items that should be returned",
46+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
4847
)
4948
listCmd.Flags().BoolVarP(&mine, "mine", "M", true, "Return the subscriptions of the authenticated user")
5049
listCmd.Flags().BoolVarP(

cmd/video/list.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,7 @@ func init() {
5151
listCmd.Flags().Int64VarP(&maxHeight, "maxHeight", "H", 0, "")
5252
listCmd.Flags().Int64VarP(&maxWidth, "maxWidth", "W", 0, "")
5353
listCmd.Flags().Int64VarP(
54-
&maxResults, "maxResults", "n", 5,
55-
"Specifies the maximum number of items that should be returned",
54+
&maxResults, "maxResults", "n", 5, "The maximum number of items that should be returned",
5655
)
5756
listCmd.Flags().StringVarP(
5857
&onBehalfOfContentOwner, "onBehalfOfContentOwner", "b", "", "",

0 commit comments

Comments
 (0)