filename is not a required argument
This commit is contained in:
parent
5331e6fec6
commit
9ca4a2530c
1 changed files with 0 additions and 4 deletions
|
|
@ -75,10 +75,6 @@ class Pastoob(ReplApplication):
|
|||
Submit a new paste.
|
||||
The filename can be '-' for reading standard input (pipe).
|
||||
"""
|
||||
if not filename:
|
||||
print >>sys.stderr, 'This command takes an argument: %s' % self.get_command_help('post', short=True)
|
||||
return 1
|
||||
|
||||
if filename is None or filename == '-':
|
||||
contents = sys.stdin.read()
|
||||
else:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue