diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2019-07-11 13:23:55 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2019-07-11 13:33:00 +0200 |
commit | 74f6c546c0f5875bf62d5ddad77cf4cb571ee26f (patch) | |
tree | dbf611ac0836b20f683d00c3a704f24fa2ca7133 | |
parent | a1f263056bfd53837fcb923b88963aab60a05aa3 (diff) | |
download | cpaste-WIP.tar.gz cpaste-WIP.tar.xz cpaste-WIP.zip |
FOOWIP
-rwxr-xr-x | cpaste | 22 |
1 files changed, 14 insertions, 8 deletions
@@ -272,6 +272,8 @@ def main(): parser.add_option("-o", "--opendiscussion", action="store_true", dest="opendiscussion", default=False, help="Allow discussion for the paste") + parser.add_option("-g", "--get", dest="paste", + help="Specify a cpaste URL to get a paste") (options, args) = parser.parse_args() @@ -319,14 +321,18 @@ def main(): if options.password: paste_password = options.password - privatebin_send(paste_url, - paste_password, - paste_plaintext, - paste_formatter, - paste_compress, - paste_burn, - paste_opendicussion, - paste_expire) + if options.paste: + + privatebin_receive(options.paste) + else: + privatebin_send(paste_url, + paste_password, + paste_plaintext, + paste_formatter, + paste_compress, + paste_burn, + paste_opendicussion, + paste_expire) sys.exit(0) |