Add "interactive prompt" to manual
[umph.git] / doc / man1 / umph.1.pod
blobb7ed0046b97fa1a8fb55ab2e8298ba96e56892aa
2 =head1 NAME
4 umph - Command line tool for parsing YouTube feeds
6 =head1 SYNOPSIS
8 umph [-q] [-i] [-a] [--csv | --json] [-t E<lt>typeE<gt>]
9      [--proxy E<lt>addrE<gt>| --no-proxy]
10      [E<lt>playlist_idE<gt> | E<lt>usernameE<gt>]
12 =head1 DESCRIPTION
14 umph is a command line tool for parsing YouTube feeds. It can parse
15 playlists, favorite lists, and user upload lists.
17 umph prints the found URLs to the standard output, each URL separated
18 with a newline. It can be used to select the feed items by using the
19 C<--interactive> prompt.
21 =head1 OPTIONS
23 =over 4
25 =item B<-h, --help>
27 Print help and exit.
29 =item B<-v, --version>
31 Print version and exit.
33 =item B<-q, --quiet>
35 Turn off output to stderr, e.g. status changes. Warnings and errors are
36 still printed.
38 =item B<-t, --type> I<arg> (=p)
40 Specifies the feed type to get. I<arg> can be one of the following:
42  p, playlist  (arg0 will be treated as playlist ID)
43  f, favorites (arg0 will be treated as username)
44  u, uploads   (ditto)
46 See also L</EXAMPLES>.
48 =item B<-s, --start-index> I<arg> (=1)
50 "The start-index parameter specifies the index of the first matching result
51 that should be included in the result set. This parameter uses a one-based
52 index, meaning the first result is 1, the second result is 2 and so forth.
54 This parameter works in conjunction with the C<--max-results> parameter to
55 determine which results to return. For example, to request the second set
56 of 10 results, i.e. results 11-20, set the start-index parameter to 11
57 and the max-results parameter to 10." -- E<lt>http://is.gd/l4wDNfE<gt>
59 C<--all> causes umph to ignore the value set with this option.
61 =item B<-m, --max-results> I<arg> (=25)
63 "The max-results parameter specifies the maximum number of results that
64 should be included in the result set.
66 This parameter works in conjunction with the C<--start-index>  parameter
67 to determine which results to return. For example, to request the second
68 set of 10 results, i.e. results 11-20, set the max-results parameter
69 to 10 and the start-index parameter to 11.
71 The default value of this parameter is 25, and the maximum value is 50.
72 However, for displaying lists of videos, we recommend that you set the
73 max-results parameter to 10." -- E<lt>http://is.gd/OcSjwUE<gt>
75 C<--all> causes umph to ignore the value set with this option.
77 =item B<-a, --all>
79 Get all feed items.
81 =item B<-i, --interactive>
83 Open the interactive prompt which can be used to select the items.
84 umph selects I<all> feed items by default. See also L</INTERACTIVE PROMPT>.
86 =item B<--json>
88 Print details in JSON. Negates --csv.
90 =item B<--csv>
92 Print details in CSV.
94 =item B<--proxy> I<arg>
96 Use I<arg> for HTTP proxy, e.g. "http://foo:1234". Overrides the http_proxy
97 environment setting.
99 =item B<--no-proxy>
101 Disable use of HTTP proxy. Overrides both C<--proxy> and http_proxy
102 environment settings.
104 =back
106 =head1 INTERACTIVE PROMPT
108 Use the C<--interactive> switch to open the prompt. Note that umph
109 uses (as of 0.2.0) the Umph::Prompt module for this. Once the prompt
110 opens, type "help" to get a list of commands available to the prompt.
112 =head1 EXAMPLES
114 =head2 umph AAF3A1D0CA1E304F
116 Get playlist "AAF3A1D0CA1E304F".
118 =head2 umph --json AAF3A1D0CA1E304F
120 Same as above, but print the details in JSON.
122 =head2 umph -s 11 -m 10 AAF3A1D0CA1E304F
124 Same as above but get the items 11-20 from the playlist.
126 =head2 umph -a AAF3A1D0CA1E304F
128 Similar but get I<all> of the items in the playlist. By default, umph gets
129 only the items 1-25 from the list. See also C<--start-index> and
130 C<--max-results>.
132 =head2 umph -t f foo
134 Get favorites for user "foo".
136 =head2 umph -t u foo
138 Get uploads for user "foo".
140 =head2 umph AAF3A1D0CA1E304F | cclive
142 Download the found items with C<cclive(1)>.
144 =head1 EXIT STATUS
146 Exits 0 on success, otherwise 1.
148 =head1 FILES
150 =head2 ~/.umphrc
152 =head3 Example:
154  echo "--interactive" >> ~/.umphrc
156 =head1 NOTES
158 =over 4
160 =item B<http_proxy>
162 umph depends on XML::DOM which uses LWP::UserAgent to fetch the data
163 over the network. LWP::UserAgent reads the http_proxy environment
164 setting. e.g.:
166  env http_proxy=http://foo:1234 umph AAF3A1D0CA1E304F
168 =item B<Unavailable feeds>
170 umph cannot parse "private" lists.
172 =back
174 =head1 WWW
176  Home  : <http://umph.googlecode.com/>
177  gitweb: <http://repo.or.cz/w/umph.git>
179 =head1 LICENSE
181 umph is free software, licensed under the GPLv3+.
183 =head1 SEE ALSO
185 C<cclive(1)>
187 =head1 AUTHOR
189 Toni Gundogdu <legatvs at sign cpan org>