Skip to content

Commit

Permalink
🚸 List available options in help
Browse files Browse the repository at this point in the history
  • Loading branch information
OpenWaygate committed Mar 23, 2024
1 parent bf1ac4a commit 2e3928c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cmd/video/insert.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ func init() {
insertCmd.Flags().StringVarP(&channelId, "channelId", "c", "", "Channel ID of the video")
insertCmd.Flags().StringVarP(&playListId, "playlistId", "y", "", "Playlist ID of the video")
insertCmd.Flags().StringVarP(&category, "category", "g", "", "Category of the video")
insertCmd.Flags().StringVarP(&privacy, "privacy", "p", "", "Privacy status of the video")
insertCmd.Flags().BoolVarP(&forKids, "forKids", "o", false, "Whether the video is for kids")
insertCmd.Flags().StringVarP(&privacy, "privacy", "p", "", "Privacy status of the video: public, private, or unlisted")
insertCmd.Flags().BoolVarP(&forKids, "forKids", "k", false, "Whether the video is for kids")
insertCmd.Flags().BoolVarP(&embeddable, "embeddable", "e", true, "Whether the video is embeddable")

insertCmd.MarkFlagRequired("file")
Expand Down
2 changes: 1 addition & 1 deletion cmd/video/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ func init() {
parts := []string{"id", "snippet", "status"}

listCmd.Flags().StringVarP(&id, "id", "i", "", "ID of the video")
listCmd.Flags().StringVarP(&rating, "rating", "r", "", "My rating of the video")
listCmd.Flags().StringVarP(&rating, "rating", "r", "", "My rating of the video: like or dislike")
listCmd.Flags().StringVarP(&output, "output", "o", "", "Output format: json or yaml")
listCmd.Flags().StringArrayVarP(&parts, "parts", "p", parts, "Comma separated parts")
}
2 changes: 1 addition & 1 deletion cmd/video/rate.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ func init() {
videoCmd.AddCommand(rateCmd)

rateCmd.Flags().StringVarP(&id, "id", "i", "", "ID of the video")
rateCmd.Flags().StringVarP(&rating, "rating", "r", "", "Rating of the video")
rateCmd.Flags().StringVarP(&rating, "rating", "r", "", "Rating of the video: like, dislike or none")

rateCmd.MarkFlagRequired("id")
rateCmd.MarkFlagRequired("rating")
Expand Down
2 changes: 1 addition & 1 deletion cmd/video/update.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ func init() {
updateCmd.Flags().StringVarP(&thumbnail, "thumbnail", "h", "", "Path to the thumbnail")
updateCmd.Flags().StringVarP(&playListId, "playlistId", "y", "", "Playlist ID of the video")
updateCmd.Flags().StringVarP(&category, "category", "g", "", "Category of the video")
updateCmd.Flags().StringVarP(&privacy, "privacy", "p", "", "Privacy status of the video")
updateCmd.Flags().StringVarP(&privacy, "privacy", "p", "", "Privacy status of the video: public, private or unlisted")
updateCmd.Flags().BoolVarP(&embeddable, "embeddable", "e", true, "Whether the video is embeddable")

updateCmd.MarkFlagRequired("id")
Expand Down

0 comments on commit 2e3928c

Please # to comment.