wgetpaste.pod 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. # pod source for wgetpaste man page. Convert with:
  2. # pod2man --stderr -s1 -cSlackBuilds.org -r2.25 -u wgetpaste.pod > wgetpaste.1
  3. =pod
  4. =encoding utf8
  5. =head1 NAME
  6. wgetpaste - Command-line interface to various pastebin sites
  7. =head1 SYNOPSIS
  8. wgetpaste [options] [file[s]]
  9. =head1 OPTIONS
  10. =over 4
  11. =item -l, --language LANG
  12. set language (defaults to "Plain Text")
  13. =item -d, --description DESCRIPTION
  14. set description (defaults to "stdin" or filename)
  15. =item -n, --nick NICK
  16. set nick (defaults to your username)
  17. =item -s, --service SERVICE
  18. set service to use (defaults to "dpaste")
  19. =item -e, --expiration EXPIRATION
  20. set when it should expire (defaults to "1 month")
  21. =item -S, --list-services
  22. list supported pastebin services
  23. =item -L, --list-languages
  24. list languages supported by the specified service
  25. =item -E, --list-expiration
  26. list expiration setting supported by the specified service
  27. =item -u, --tinyurl URL
  28. convert input url to tinyurl
  29. =item -c, --command COMMAND
  30. paste COMMAND and the output of COMMAND
  31. =item -i, --info
  32. append the output of `wgetpaste_info`
  33. =item -I, --info-only
  34. paste the output of `wgetpaste_info` only
  35. =item -x, --xcut
  36. read input from clipboard (requires xclip)
  37. =item -X, --xpaste
  38. write resulting url to the X primary selection buffer (requires xclip)
  39. =item -C, --xclippaste
  40. write resulting url to the X clipboard selection buffer (requires xclip)
  41. =item -r, --raw
  42. show url for the raw paste (no syntax highlighting or html)
  43. =item -t, --tee
  44. use tee to show what is being pasted
  45. =item -v, --verbose
  46. show wget stderr output if no url is received
  47. =item --completions
  48. emit output suitable for shell completions (only affects --list-*)
  49. =item --debug
  50. be *very* verbose (implies -v)
  51. =item -h, --help
  52. show this help
  53. =item -g, --ignore-configs
  54. ignore /etc/wgetpaste.conf, ~/.wgetpaste.conf etc.
  55. =item --version
  56. show version information
  57. =back
  58. Defaults (DEFAULT_{NICK,LANGUAGE,EXPIRATION}[_${SERVICE}] and DEFAULT_SERVICE)
  59. can be overridden globally in /etc/wgetpaste.conf or /etc/wgetpaste.d/*.conf or
  60. per user in any of ~/.wgetpaste.conf or ~/.wgetpaste.d/*.conf.
  61. An additional http header can be passed by setting HEADER_${SERVICE} in any of the
  62. configuration files mentioned above. For example, authenticating with github gist:
  63. HEADER_gists="Authorization: token 1234abc56789..."
  64. =head1 BUGS
  65. B<wgetpaste> works by hard-coding URLs and CGI parameters into
  66. the script. This means that if a paste service's web site changes,
  67. B<wgetpaste> might stop working with that site. Currently (January 2015),
  68. the B<ca> (http://pastebin.ca) and B<bpaste> (http://bpaste.net) services
  69. are broken, and the others have been tested and work OK.
  70. =head1 AUTHOR
  71. Copyright (c) 2007 Bo Ørsted Andresen <bo.andresen@zlin.dk>
  72. Distributed as-is. With no warranties.
  73. Man page created by B. Watson <yalhcru@gmail.com>, for the SlackBuilds.org project (but
  74. it may be used by anyone).