Browse code

Change invocation somewhat

Jenga Phoenix authored on 2019-03-16 15:43:18
Showing 2 changed files
... ...
@@ -43,12 +43,12 @@ fi
43 43
 
44 44
 # Show usage message of the video subcommand
45 45
 function video_usage {
46
-	echo "usage: yt video --(s)earch [...]"
47
-	echo "       yt video --(t)itle [...]"
48
-	echo "       yt video --(d)esc [...]"
49
-	echo "       yt video --(a)uthor [...]"
50
-	echo "       yt video --(v)iews [...]"
51
-	echo "       yt video --(D)ate [...]"
46
+	echo "usage: yt video (s)earch [...]"
47
+	echo "       yt video (t)itle [...]"
48
+	echo "       yt video (d)esc [...]"
49
+	echo "       yt video (a)uthor [...]"
50
+	echo "       yt video (v)iews [...]"
51
+	echo "       yt video (D)ate [...]"
52 52
 
53 53
 	exit 2
54 54
 }
... ...
@@ -65,20 +65,20 @@ function video_invocation {
65 65
 	fi
66 66
 
67 67
 	case "$command" in
68
-		"--search")	video_search_invocation $arguments;;
69
-		"-s")    	video_search_invocation $arguments;;
70
-		"-d")      	video_desc_invocation $arguments;;
71
-		"--desc")   	video_desc_invocation $arguments;;
72
-		"-D")     	video_uploaded_invocation $arguments;;
73
-		"--date")   	video_uploaded_invocation $arguments;;
74
-		"--views")   	video_views_invocation $arguments;;
75
-		"-v")      	video_views_invocation $arguments;;
76
-		"--author")   	video_author_invocation $arguments;;
77
-		"-a")     	video_author_invocation $arguments;;
78
-		"--title")   	video_title_invocation $arguments;;
79
-		"-t")     	video_title_invocation $arguments;;
80
-		"--help")     	video_usage;;
81
-		"-h")     	video_usage;;
68
+		"search")	video_search_invocation $arguments;;
69
+		"s")    	video_search_invocation $arguments;;
70
+		"d")      	video_desc_invocation $arguments;;
71
+		"desc")   	video_desc_invocation $arguments;;
72
+		"D")     	video_uploaded_invocation $arguments;;
73
+		"date")   	video_uploaded_invocation $arguments;;
74
+		"views")   	video_views_invocation $arguments;;
75
+		"v")      	video_views_invocation $arguments;;
76
+		"author")   	video_author_invocation $arguments;;
77
+		"a")     	video_author_invocation $arguments;;
78
+		"title")   	video_title_invocation $arguments;;
79
+		"t")     	video_title_invocation $arguments;;
80
+		"help")     	video_usage;;
81
+		"h")     	video_usage;;
82 82
 	esac
83 83
 }
84 84
 
... ...
@@ -86,12 +86,12 @@ function video_invocation {
86 86
 
87 87
 # Show playlist usage message
88 88
 function playlist_usage {
89
-	echo "usage: yt playlist --(s)earch [...]"
90
- 	echo "       yt playlist --(l)ist [...]"
91
-	echo "       yt playlist --(t)itle [...]"
92
-	echo "       yt playlsit --(a)uthor [...]"
93
-	echo "       yt playlist --(v)iews [...]"
94
-	echo "       yt playlist --(D)ate [...]"
89
+	echo "usage: yt playlist (s)earch [...]"
90
+ 	echo "       yt playlist (l)ist [...]"
91
+	echo "       yt playlist (t)itle [...]"
92
+	echo "       yt playlsit (a)uthor [...]"
93
+	echo "       yt playlist (v)iews [...]"
94
+	echo "       yt playlist (D)ate [...]"
95 95
 	exit 2
96 96
 }
97 97
 
... ...
@@ -107,20 +107,20 @@ function playlist_invocation {
107 107
 	fi
108 108
 
109 109
 	case "$command" in
110
-		"--search")	playlist_search_invocation $arguments;;
111
-		"-s")    	playlist_search_invocation $arguments;;
112
-		"--views")   	playlist_views_invocation $arguments;;
113
-		"-v")      	playlist_views_invocation $arguments;;
114
-		"--author")   	playlist_author_invocation $arguments;;
115
-		"-a")     	playlist_author_invocation $arguments;;
116
-		"--date")   	playlist_uploaded_invocation $arguments;;
117
-		"-D")     	playlist_uploaded_invocation $arguments;;
118
-		"--title")   	playlist_title_invocation $arguments;;
119
-		"-t")     	playlist_title_invocation $arguments;;
120
-		"--list")	playlist_list_invocation $arguments;;
121
-		"-l")   	playlist_list_invocation $arguments;;
122
-		"--help")     	playlist_usage;;
123
-		"-h")     	playlist_usage;;
110
+		"search")	playlist_search_invocation $arguments;;
111
+		"s")    	playlist_search_invocation $arguments;;
112
+		"views")   	playlist_views_invocation $arguments;;
113
+		"v")      	playlist_views_invocation $arguments;;
114
+		"author")   	playlist_author_invocation $arguments;;
115
+		"a")     	playlist_author_invocation $arguments;;
116
+		"date")   	playlist_uploaded_invocation $arguments;;
117
+		"D")     	playlist_uploaded_invocation $arguments;;
118
+		"title")   	playlist_title_invocation $arguments;;
119
+		"t")     	playlist_title_invocation $arguments;;
120
+		"list")	playlist_list_invocation $arguments;;
121
+		"l")   	playlist_list_invocation $arguments;;
122
+		"help")     	playlist_usage;;
123
+		"h")     	playlist_usage;;
124 124
 	esac
125 125
 }
126 126
 
... ...
@@ -380,7 +380,7 @@ function result_format_big {
380 380
 
381 381
 
382 382
 # --------------------------------------
383
-# playlsit metadata
383
+# playlist metadata
384 384
 
385 385
 # STRING --> STRING
386 386
 # Get the title of a playlist, from HTML.