wgetpaste.1 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178
  1. .\" Automatically generated by Pod::Man 2.27 (Pod::Simple 3.28)
  2. .\"
  3. .\" Standard preamble:
  4. .\" ========================================================================
  5. .de Sp \" Vertical space (when we can't use .PP)
  6. .if t .sp .5v
  7. .if n .sp
  8. ..
  9. .de Vb \" Begin verbatim text
  10. .ft CW
  11. .nf
  12. .ne \\$1
  13. ..
  14. .de Ve \" End verbatim text
  15. .ft R
  16. .fi
  17. ..
  18. .\" Set up some character translations and predefined strings. \*(-- will
  19. .\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left
  20. .\" double quote, and \*(R" will give a right double quote. \*(C+ will
  21. .\" give a nicer C++. Capital omega is used to do unbreakable dashes and
  22. .\" therefore won't be available. \*(C` and \*(C' expand to `' in nroff,
  23. .\" nothing in troff, for use with C<>.
  24. .tr \(*W-
  25. .ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'
  26. .ie n \{\
  27. . ds -- \(*W-
  28. . ds PI pi
  29. . if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch
  30. . if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\" diablo 12 pitch
  31. . ds L" ""
  32. . ds R" ""
  33. . ds C` ""
  34. . ds C' ""
  35. 'br\}
  36. .el\{\
  37. . ds -- \|\(em\|
  38. . ds PI \(*p
  39. . ds L" ``
  40. . ds R" ''
  41. . ds C`
  42. . ds C'
  43. 'br\}
  44. .\"
  45. .\" Escape single quotes in literal strings from groff's Unicode transform.
  46. .ie \n(.g .ds Aq \(aq
  47. .el .ds Aq '
  48. .\"
  49. .\" If the F register is turned on, we'll generate index entries on stderr for
  50. .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index
  51. .\" entries marked with X<> in POD. Of course, you'll have to process the
  52. .\" output yourself in some meaningful fashion.
  53. .\"
  54. .\" Avoid warning from groff about undefined register 'F'.
  55. .de IX
  56. ..
  57. .nr rF 0
  58. .if \n(.g .if rF .nr rF 1
  59. .if (\n(rF:(\n(.g==0)) \{
  60. . if \nF \{
  61. . de IX
  62. . tm Index:\\$1\t\\n%\t"\\$2"
  63. ..
  64. . if !\nF==2 \{
  65. . nr % 0
  66. . nr F 2
  67. . \}
  68. . \}
  69. .\}
  70. .rr rF
  71. .\" ========================================================================
  72. .\"
  73. .IX Title "WGETPASTE 1"
  74. .TH WGETPASTE 1 "2015-01-25" "2.25" "SlackBuilds.org"
  75. .\" For nroff, turn off justification. Always turn off hyphenation; it makes
  76. .\" way too many mistakes in technical documents.
  77. .if n .ad l
  78. .nh
  79. .SH "NAME"
  80. wgetpaste \- Command\-line interface to various pastebin sites
  81. .SH "SYNOPSIS"
  82. .IX Header "SYNOPSIS"
  83. wgetpaste [options] [file[s]]
  84. .SH "OPTIONS"
  85. .IX Header "OPTIONS"
  86. .IP "\-l, \-\-language \s-1LANG\s0" 4
  87. .IX Item "-l, --language LANG"
  88. set language (defaults to \*(L"Plain Text\*(R")
  89. .IP "\-d, \-\-description \s-1DESCRIPTION\s0" 4
  90. .IX Item "-d, --description DESCRIPTION"
  91. set description (defaults to \*(L"stdin\*(R" or filename)
  92. .IP "\-n, \-\-nick \s-1NICK\s0" 4
  93. .IX Item "-n, --nick NICK"
  94. set nick (defaults to your username)
  95. .IP "\-s, \-\-service \s-1SERVICE\s0" 4
  96. .IX Item "-s, --service SERVICE"
  97. set service to use (defaults to \*(L"dpaste\*(R")
  98. .IP "\-e, \-\-expiration \s-1EXPIRATION\s0" 4
  99. .IX Item "-e, --expiration EXPIRATION"
  100. set when it should expire (defaults to \*(L"1 month\*(R")
  101. .IP "\-S, \-\-list\-services" 4
  102. .IX Item "-S, --list-services"
  103. list supported pastebin services
  104. .IP "\-L, \-\-list\-languages" 4
  105. .IX Item "-L, --list-languages"
  106. list languages supported by the specified service
  107. .IP "\-E, \-\-list\-expiration" 4
  108. .IX Item "-E, --list-expiration"
  109. list expiration setting supported by the specified service
  110. .IP "\-u, \-\-tinyurl \s-1URL\s0" 4
  111. .IX Item "-u, --tinyurl URL"
  112. convert input url to tinyurl
  113. .IP "\-c, \-\-command \s-1COMMAND\s0" 4
  114. .IX Item "-c, --command COMMAND"
  115. paste \s-1COMMAND\s0 and the output of \s-1COMMAND\s0
  116. .IP "\-i, \-\-info" 4
  117. .IX Item "-i, --info"
  118. append the output of `wgetpaste_info`
  119. .IP "\-I, \-\-info\-only" 4
  120. .IX Item "-I, --info-only"
  121. paste the output of `wgetpaste_info` only
  122. .IP "\-x, \-\-xcut" 4
  123. .IX Item "-x, --xcut"
  124. read input from clipboard (requires xclip)
  125. .IP "\-X, \-\-xpaste" 4
  126. .IX Item "-X, --xpaste"
  127. write resulting url to the X primary selection buffer (requires xclip)
  128. .IP "\-C, \-\-xclippaste" 4
  129. .IX Item "-C, --xclippaste"
  130. write resulting url to the X clipboard selection buffer (requires xclip)
  131. .IP "\-r, \-\-raw" 4
  132. .IX Item "-r, --raw"
  133. show url for the raw paste (no syntax highlighting or html)
  134. .IP "\-t, \-\-tee" 4
  135. .IX Item "-t, --tee"
  136. use tee to show what is being pasted
  137. .IP "\-v, \-\-verbose" 4
  138. .IX Item "-v, --verbose"
  139. show wget stderr output if no url is received
  140. .IP "\-\-completions" 4
  141. .IX Item "--completions"
  142. emit output suitable for shell completions (only affects \-\-list\-*)
  143. .IP "\-\-debug" 4
  144. .IX Item "--debug"
  145. be *very* verbose (implies \-v)
  146. .IP "\-h, \-\-help" 4
  147. .IX Item "-h, --help"
  148. show this help
  149. .IP "\-g, \-\-ignore\-configs" 4
  150. .IX Item "-g, --ignore-configs"
  151. ignore /etc/wgetpaste.conf, ~/.wgetpaste.conf etc.
  152. .IP "\-\-version" 4
  153. .IX Item "--version"
  154. show version information
  155. .PP
  156. Defaults (DEFAULT_{\s-1NICK,LANGUAGE,EXPIRATION\s0}[_${\s-1SERVICE\s0}] and \s-1DEFAULT_SERVICE\s0)
  157. can be overridden globally in /etc/wgetpaste.conf or /etc/wgetpaste.d/*.conf or
  158. per user in any of ~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf.
  159. .PP
  160. An additional http header can be passed by setting HEADER_${\s-1SERVICE\s0} in any of the
  161. configuration files mentioned above. For example, authenticating with github gist:
  162. HEADER_gists=\*(L"Authorization: token 1234abc56789...\*(R"
  163. .SH "BUGS"
  164. .IX Header "BUGS"
  165. \&\fBwgetpaste\fR works by hard-coding URLs and \s-1CGI\s0 parameters into
  166. the script. This means that if a paste service's web site changes,
  167. \&\fBwgetpaste\fR might stop working with that site. Currently (January 2015),
  168. the \fBca\fR (http://pastebin.ca) and \fBbpaste\fR (http://bpaste.net) services
  169. are broken, and the others have been tested and work \s-1OK.\s0
  170. .SH "AUTHOR"
  171. .IX Header "AUTHOR"
  172. Copyright (c) 2007 Bo Ørsted Andresen <bo.andresen@zlin.dk>
  173. .PP
  174. Distributed as-is. With no warranties.
  175. .PP
  176. Man page created by B. Watson <yalhcru@gmail.com>, for the SlackBuilds.org project (but
  177. it may be used by anyone).