Bump version
[clive.git] / bin / clive
blob497f5f8f3e5493514b8f1089333a15a76a4c7ecd
1 #!/usr/bin/perl
2 # -*- coding: ascii -*-
3 ###########################################################################
4 # clive, command line video extraction utility.
5 # Copyright 2007, 2008, 2009 Toni Gundogdu.
7 # This file is part of clive.
9 # clive is free software: you can redistribute it and/or modify it under
10 # the terms of the GNU General Public License as published by the Free
11 # Software Foundation, either version 3 of the License, or (at your option)
12 # any later version.
14 # clive is distributed in the hope that it will be useful, but WITHOUT ANY
15 # WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
16 # FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
17 # details.
19 # You should have received a copy of the GNU General Public License along
20 # with this program. If not, see <http://www.gnu.org/licenses/>.
21 ###########################################################################
22 use warnings;
23 use strict;
25 binmode( STDOUT, ":utf8" );
26 binmode( STDERR, ":utf8" );
28 use clive::App;
30 clive::App->main;
32 __END__
34 =head1 SYNOPSIS
36 clive [options]... [URL]...
38 =head1 OPTIONS
40 -h, --help Print help and exit
41 -v, --version Print version and exit
42 --hosts Print supported hosts and exit
43 --upgrade-config Upgrade 2.0/2.1 config to 2.2+ format
44 -l, --last Recall last input
45 --last-file=FILE Read/write FILE instead of default path
46 Output Options:
47 --emit-csv Emit video details in CSV to stdout
48 --debug Print cURL debug messages
49 -q, --quiet Turn off all output
50 --stderr Redirect all output to stderr
51 --print-fname Print filename before download starts
52 HTTP Options:
53 --agent=STRING Identify as STRING to http server
54 --connect-timeout=SECS Max time allowed connection to take
55 --connect-timeout-socks=S Same as above, tries to workaround SOCKS
56 --proxy=ADDR Use ADDR for http proxy
57 --no-proxy Disable all use of http proxy
58 --cookie-jar=FILE Enable cookies, write them to FILE
59 Cache Options:
60 --cache-file=FILE Read/write FILE instead of default path
61 -r, --cache-read Enable reading from cache
62 -d, --cache-dump Dump cache records to stdout
63 --cache-dump-format=STRING Print format for dumping cache records
64 --cache-grep=PATTERN Grep cache records for PATTERN
65 -i, --cache-ignore-case Ignore case while matching records
66 -D, --cache-remove-record Remove matched records from cache
67 --cache-clear Truncate cache records
68 --no-cache Disable cache all (read and write) use
69 Download Options:
70 -f, --format=FORMAT Extract FORMAT of video
71 -O, --output-file=FILE Write video to file
72 -c, --continue Continue partially downloaded file
73 -n, --no-extract Do not extract any videos
74 --save-dir=DIR Save video files to DIR
75 --cclass=CLASS Use character CLASS to filter titles
76 -C, --no-cclass Do not apply character class
77 --filename-format=STRING Use STRING to format output filename
78 --exec=CMD Command to run when transfer finishes
79 -e, --exec-run Invoke command defined with --exec
80 --stream-exec=CMD Stream command to be invoked
81 --stream=PERCENT Invoke --stream-exec when transfer reaches %
82 -s, --stream-pass Pass video link to --stream-exec command
83 --limit-rate=AMOUNT Limit transfer rate to AMOUNT (KB/s)
84 --stop-after=SIZE|PERCENT Stop file transfer after SIZE or PERCENT