forked from gregkh/bti
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbti-shrink-urls.xml
126 lines (116 loc) · 3.92 KB
/
bti-shrink-urls.xml
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
121
122
123
124
125
126
<?xml version='1.0'?>
<!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd">
<article>
<section>
<title>bti-shrink-urls</title>
<refentry>
<refentryinfo>
<title>bti-shrink-urls</title>
<date>March 2009</date>
<productname>bti-shrink-urls</productname>
</refentryinfo>
<refmeta>
<refentrytitle>bti-shrink-urls</refentrytitle>
<manvolnum>1</manvolnum>
<refmiscinfo class="version"></refmiscinfo>
</refmeta>
<refnamediv>
<refname>bti-shrink-urls</refname>
<refpurpose>convert URLs to a shorter form using a web service</refpurpose>
</refnamediv>
<refsynopsisdiv>
<cmdsynopsis>
<command>bti</command>
<arg><option>--escaped</option></arg>
<arg><option>--help</option></arg>
<arg><option>URL</option></arg>
</cmdsynopsis>
</refsynopsisdiv>
<refsect1><title>DESCRIPTION</title>
<para>
bti-shrink-urls converts URLs to a shorter form using a web service.
</para>
<para>
Currently http://2tu.us/ (default) and http://bit.ly / http://j.mp are supported.
</para>
</refsect1>
<refsect1><title>OPTIONS</title>
<variablelist>
<varlistentry>
<term><option>--escaped</option></term>
<listitem>
<para>
Don't escape special characters in the URL any more, they are
already percent encoded.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>--help</option></term>
<listitem>
<para>
Print help text.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>URL</option></term>
<listitem>
<para>
Specify the URL to be converted. If no URL is given
bti-shrink-urls waits for input on stdin.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1><title>CONFIGURATION</title>
<para>
bti-shrink-urls is configured by setting some values in ~/.bti:
</para>
<variablelist>
<varlistentry>
<term><option>shrink_host</option></term>
<listitem>
<para>
Possible values: 2tu.us (default), bit.ly, j.mp
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>shrink_bitly_login</option></term>
<listitem>
<para>
API login for bit.ly, j.mp, required if shrink_host is set to bit.ly or j.mp.
See https://code.google.com/p/bitly-api/wiki/ApiDocumentation
</para>
</listitem>
</varlistentry>
<varlistentry>
<term><option>shrink_bitly_key</option></term>
<listitem>
<para>
API key for bit.ly, j.mp, required if shrink_host is set to bit.ly or j.mp.
See https://code.google.com/p/bitly-api/wiki/ApiDocumentation
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1><title>AUTHOR</title>
<para>Written by Bart Trojanowski <email>[email protected]</email>.</para>
</refsect1>
<refsect1><title>COPYRIGHT AND LICENSE</title>
<para>
Copyright (C) 2009 Bart Trojanowski <email>[email protected]</email>.
</para>
<para>
This program is free software; you can redistribute it and/or modify it
under the terms of the GNU General Public License as published by the
Free Software Foundation version 2 of the License.
</para>
</refsect1>
</refentry>
</section>
</article>