@ -58,6 +58,8 @@ def main():
get_parser = subparsers . add_parser ( " get " , description = " Get data from PrivateBin instance " )
get_parser = subparsers . add_parser ( " get " , description = " Get data from PrivateBin instance " )
get_parser . add_argument ( " pasteinfo " , help = " example: aabb#cccddd " )
get_parser . add_argument ( " pasteinfo " , help = " example: aabb#cccddd " )
get_parser . add_argument ( " -p " , " --password " , help = " password for decrypting paste " )
get_parser . add_argument ( " -p " , " --password " , help = " password for decrypting paste " )
get_parser . add_argument ( " -s " , " --server " , default = argparse . SUPPRESS , help = " PrivateBin service URL (default: https://paste.i2pd.xyz/) " )
get_parser . add_argument ( " -x " , " --proxy " , default = argparse . SUPPRESS , help = " Proxy server address (default: None) " )
get_parser . add_argument ( " --no-check-certificate " , default = False , action = " store_true " , help = " disable certificate validation " )
get_parser . add_argument ( " --no-check-certificate " , default = False , action = " store_true " , help = " disable certificate validation " )
get_parser . add_argument ( " --no-insecure-warning " , default = False , action = " store_true " , help = " suppress InsecureRequestWarning (only with --no-check-certificate) " )
get_parser . add_argument ( " --no-insecure-warning " , default = False , action = " store_true " , help = " suppress InsecureRequestWarning (only with --no-check-certificate) " )
get_parser . add_argument ( " -d " , " --debug " , default = False , action = " store_true " , help = " enable debug " )
get_parser . add_argument ( " -d " , " --debug " , default = False , action = " store_true " , help = " enable debug " )
@ -67,6 +69,8 @@ def main():
delete_parser = subparsers . add_parser ( " delete " , description = " Delete paste from PrivateBin instance using token " )
delete_parser = subparsers . add_parser ( " delete " , description = " Delete paste from PrivateBin instance using token " )
delete_parser . add_argument ( " -p " , " --paste " , required = True , help = " paste id " )
delete_parser . add_argument ( " -p " , " --paste " , required = True , help = " paste id " )
delete_parser . add_argument ( " -t " , " --token " , required = True , help = " paste deletion token " )
delete_parser . add_argument ( " -t " , " --token " , required = True , help = " paste deletion token " )
delete_parser . add_argument ( " -s " , " --server " , default = argparse . SUPPRESS , help = " PrivateBin service URL (default: https://paste.i2pd.xyz/) " )
delete_parser . add_argument ( " -x " , " --proxy " , default = argparse . SUPPRESS , help = " Proxy server address (default: None) " )
delete_parser . add_argument ( " --no-check-certificate " , default = False , action = " store_true " , help = " disable certificate validation " )
delete_parser . add_argument ( " --no-check-certificate " , default = False , action = " store_true " , help = " disable certificate validation " )
delete_parser . add_argument ( " --no-insecure-warning " , default = False , action = " store_true " , help = " suppress InsecureRequestWarning (only with --no-check-certificate) " )
delete_parser . add_argument ( " --no-insecure-warning " , default = False , action = " store_true " , help = " suppress InsecureRequestWarning (only with --no-check-certificate) " )
delete_parser . add_argument ( " -d " , " --debug " , default = False , action = " store_true " , help = " enable debug " )
delete_parser . add_argument ( " -d " , " --debug " , default = False , action = " store_true " , help = " enable debug " )