-
Notifications
You must be signed in to change notification settings - Fork 0
/
usage.go
120 lines (117 loc) · 4.52 KB
/
usage.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
package main
import (
"fmt"
)
/**
I simply want this to be in an extra file.
Yes, we could use the usage function of the flag package,
but I have no idea how to format that properly.
TODO: Add a way to get help about specific flags, like --help configFile
*/
func Usage() {
fmt.Println("Global flags:")
fmt.Println("")
fmt.Println("--configFile=\"" + getDefaultConfigPath() + "\"")
fmt.Println(" Sets the path to the config file to use.")
fmt.Println(" Don't want a config file? Set it to /dev/null.")
fmt.Println("")
fmt.Println("--p2p")
fmt.Println(" Shows P2P instead of scene results.")
fmt.Println(" Basically it can be used with every function")
fmt.Println(" that shows releases.")
fmt.Println("")
fmt.Println("--perPage=5")
fmt.Println(" Set how many entries to show per page.")
fmt.Println(" Basically it can be used with every function")
fmt.Println(" that displays pagination in any way.")
fmt.Println("")
fmt.Println("--page=1")
fmt.Println(" Set the page to show. Can be used along with --perPage.")
fmt.Println("")
fmt.Println("Function flags:")
fmt.Println("")
fmt.Println("--version")
fmt.Println(" Shows the version and a few informations.")
fmt.Println("")
fmt.Println("--authenticate")
fmt.Println(" Authenticates you with xrel.to using oAuth.")
fmt.Println("")
fmt.Println("--rateLimit")
fmt.Println(" Shows your current rate limit.")
fmt.Println("")
fmt.Println("--searchRelease=\"Portal 2 Linux\"")
fmt.Println(" Search for a release. Optional parameters:")
fmt.Println(" --limit=5")
fmt.Println(" Limit output from 5 to 25 entries.")
fmt.Println(" Uses value of --perPage by default.")
fmt.Println("")
fmt.Println("--release=\"Portal.2.Linux-ACTiVATED\"")
fmt.Println(" Show information about a release.")
fmt.Println(" Optional parameters, all of them require authentication:")
fmt.Println(" --addComment=\"[...]\"")
fmt.Println(" Add a comment to a release.")
fmt.Println(" --rateVideo=9")
fmt.Println(" Rate the video of a release from 1-10. Requires --rateAudio.")
fmt.Println(" --rateAudio=8")
fmt.Println(" Rate the audio of a release from 1-10. Requires --rateVideo.")
fmt.Println("")
fmt.Println("--comments=\"Portal.2.Linux-ACTiVATED\"")
fmt.Println(" List comments of a release.")
fmt.Println("")
fmt.Println("--searchMedia=\"The Big Bang Theory\"")
fmt.Println(" Search for media. Optional parameters:")
fmt.Println(" --mediaType=\"tv\"")
fmt.Println(" Limit results by movie, tv, game, console, software or xxx.")
fmt.Println(" --limit=5")
fmt.Println(" See --searchRelease.")
fmt.Println(" --addToFavorites")
fmt.Println(" Add selected media to a favorites list you select.")
fmt.Println(" Requires authentication.")
fmt.Println(" --info")
fmt.Println(" Show information about the selected media.")
fmt.Println(" Only usefull if used with the following parameters.")
fmt.Println(" --rate=8")
fmt.Println(" Rate selected media from 1 to 10.")
fmt.Println(" --releases")
fmt.Println(" Show latest releases of the selected media.")
fmt.Println(" --images")
fmt.Println(" Show images of the selected media.")
fmt.Println(" --videos")
fmt.Println(" Show videos of the selected media.")
fmt.Println("")
fmt.Println("--showUnreadFavorites")
fmt.Println(" Select a user's favorite list and show unread releases.")
fmt.Println(" Requires authentication.")
fmt.Println("")
fmt.Println("--removeFavoriteEntry")
fmt.Println(" Select a user's favorite list and remove an entry.")
fmt.Println(" Requires authentication.")
fmt.Println("")
fmt.Println("--latest")
fmt.Println(" Lists latest releases. Optional parameters:")
fmt.Println(" --filter=\"overview\"")
fmt.Println(" Filter ID or 'overview' to use the currently")
fmt.Println(" logged in user's overview filter.")
fmt.Println("")
fmt.Println("--browseArchive=\"YYYY-MM\"")
fmt.Println(" Browse archive. Optional parameters:")
fmt.Println(" --filter=\"overview\"")
fmt.Println(" See --latest.")
fmt.Println("")
fmt.Println("--filters")
fmt.Println(" Shows a list of public, predefined release filters")
fmt.Println(" to use with --filter.")
fmt.Println("")
fmt.Println("--browseCategory=\"topmovie\"")
fmt.Println(" Browse a category. Optional parameters:")
fmt.Println(" --mediaType=\"movie\"")
fmt.Println(" See --searchMedia.")
fmt.Println("")
fmt.Println("--categories")
fmt.Println(" Returns a list of categories to use with --browseCategory.")
fmt.Println("")
fmt.Println("--upcomingTitles")
fmt.Println(" Lists upcoming titles. Optional parameters:")
fmt.Println(" --releases")
fmt.Println(" See --searchMedia.")
}