Remove support for 'sprunge "blah blah posted text"'

This commit is contained in:
Colin Shea 2011-11-27 02:49:08 -07:00
commit d20f46ef12

View file

@ -14,7 +14,6 @@ DESCRIPTION
USAGE
$0 filename.txt
$0 text string
$0 < filename.txt
piped_data | $0
@ -24,7 +23,7 @@ NOTES
$0 can accept piped data, STDIN redirection [<filename.txt], text strings following the command as arguments, or filenames as arguments. Only one of these methods can be used at a time, so please see the note on precedence. Also, note that using a pipe or STDIN redirection will treat tabs as spaces, or disregard them entirely (if they appear at the beginning of a line). So I suggest using a filename as an argument if tabs are important either to the function or readability of the code.
* PRECEDENCE *
STDIN redirection has precedence, then piped input, then a filename as an argument, and finally text strings as an arguments.
STDIN redirection has precedence, then piped input, then a filename as an argument.
EXAMPLE:
echo piped | "$0" arguments.txt < stdin_redirection.txt
@ -49,10 +48,8 @@ sprunge() {
print(get_lexer_for_filename('$*').aliases[0])
except:
print('text')" | python)
cat "$*"
else
echo "$*"
fi | curl -F 'sprunge=<-' http://sprunge.us
cat "$*" | curl -F 'sprunge=<-' http://sprunge.us
fi
else
usage
fi