Skip to content

Commit

Permalink
Doc work and fix in the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
stgraber committed Nov 27, 2006
1 parent ca19487 commit a76b6e8
Show file tree
Hide file tree
Showing 4 changed files with 53 additions and 2 deletions.
8 changes: 8 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
pastebinit (0.4) feisty; urgency=low
* Update usage and error messages
* Correct typos
* Cleaning the code and commenting it
* Use a function to load the parameters depending of the website

-- Stéphane Graber <stgraber@stgraber.org> Wed, 22 Nov 2006 17:10:50 +0100

pastebinit (0.3) feisty; urgency=low

* Make it work with paste.ubuntu-nl.org and all pastebin.com pastebins (maybe some others as well)
Expand Down
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ install: build
dh_installchangelogs
dh_installdocs
dh_installexamples
dh_installman pastebinit.1
dh_install
dh_compress
dh_fixperms
Expand Down
5 changes: 3 additions & 2 deletions pastebinit
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

import urllib, os, sys, re
import urllib, os, sys, re, gettext
gettext.install('pastebinit')
defaultPB="http://paste.ubuntu-nl.org"

#Return the parameters depending of the pastebin used
Expand Down Expand Up @@ -45,7 +46,7 @@ def getParameters(website,content,user):
try:
filename=sys.argv[1]
except:
sys.exit("usage: "+sys.argv[0]+" [filename|\"-\"]"+"\n\nDefault pastebin: "+defaultPB)
sys.exit("usage: "+sys.argv[0]+" [filename|\"-\"] ([URL])\n\nDefault pastebin: "+defaultPB)

#If - is specified as a filename read from stdin, otherwise load the specified file.
if filename == "-":
Expand Down
41 changes: 41 additions & 0 deletions pastebinit.1
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
.TH "pastebinit" 1
.SH NAME
pastebinit \- a command line Pastebin client
.SH USAGE
.B pastebinit
pastebinit [filename|-] [url]
.SH DESCRIPTION
.TP
This software reads text and send it to a Pastebin on the internet, finally it gives the URL back to the user.
.PP
It allows the text to be passed through a pipe (|) or from a file passed as a parameter.
.SH OPTIONS
.TP
.B filename
Is the path to a file you want to send (a log file for example)
.TP
.B \-
Means that pastebinit must read the stdin instead of a file
.TP
.B URL (optional)
The URL of an other supported pastebin to use (http://xyz.pastebin.com for example)
.SH SUPPORTED PASTEBINS
.RS
.RE
http://*.pastebin.com
.RE
http://paste.ubuntu-nl.org
.SH BUGS
.RS
.RE
If you have found a bug or if you want another Pastebin to be added, please send a bug report on :
.RE
https://bugs.launchpad.net/products/pastebinit/+bugs
.SH AUTHORS
.RS
.RE
Pastebinit is currently written by Stsphane Graber.
.RE
Website : http://www.stgraber.org/?cat=5
.RE
E-Mail : stgraber@stgraber.org

0 comments on commit a76b6e8

Please sign in to comment.