|
|
@ -91,7 +91,7 @@ def main(): |
|
|
|
send_parser.add_argument("-L", "--mirrors", default=argparse.SUPPRESS, help="Comma-separated list of mirrors of service with scheme (default: None)") |
|
|
|
send_parser.add_argument("-L", "--mirrors", default=argparse.SUPPRESS, help="Comma-separated list of mirrors of service with scheme (default: None)") |
|
|
|
send_parser.add_argument("-v", "--verbose", default=False, action="store_true", help="Enable verbose output") |
|
|
|
send_parser.add_argument("-v", "--verbose", default=False, action="store_true", help="Enable verbose output") |
|
|
|
send_parser.add_argument("-d", "--debug", default=False, action="store_true", help="Enable debug output. Includes verbose output") |
|
|
|
send_parser.add_argument("-d", "--debug", default=False, action="store_true", help="Enable debug output. Includes verbose output") |
|
|
|
send_parser.add_argument("--json", default=False, action="store_true", help="Print result in JSON format") |
|
|
|
send_parser.add_argument("--json", default=argparse.SUPPRESS, action="store_true", help="Print result in JSON format") |
|
|
|
send_parser.add_argument("--dry", default=False, action="store_true", help="Invoke dry run") |
|
|
|
send_parser.add_argument("--dry", default=False, action="store_true", help="Invoke dry run") |
|
|
|
send_parser.add_argument("stdin", help="Input paste text from stdin", nargs="?", type=argparse.FileType("r"), default=sys.stdin) |
|
|
|
send_parser.add_argument("stdin", help="Input paste text from stdin", nargs="?", type=argparse.FileType("r"), default=sys.stdin) |
|
|
|
send_parser.set_defaults(func=pbincli.actions.send) |
|
|
|
send_parser.set_defaults(func=pbincli.actions.send) |
|
|
@ -116,7 +116,6 @@ def main(): |
|
|
|
## |
|
|
|
## |
|
|
|
get_parser.add_argument("-v", "--verbose", default=False, action="store_true", help="Enable verbose output") |
|
|
|
get_parser.add_argument("-v", "--verbose", default=False, action="store_true", help="Enable verbose output") |
|
|
|
get_parser.add_argument("-d", "--debug", default=False, action="store_true", help="Enable debug output. Includes verbose output") |
|
|
|
get_parser.add_argument("-d", "--debug", default=False, action="store_true", help="Enable debug output. Includes verbose output") |
|
|
|
get_parser.add_argument("--json", default=False, action="store_true", help="Print result in JSON format") |
|
|
|
|
|
|
|
get_parser.set_defaults(func=pbincli.actions.get) |
|
|
|
get_parser.set_defaults(func=pbincli.actions.get) |
|
|
|
|
|
|
|
|
|
|
|
# a delete command |
|
|
|
# a delete command |
|
|
@ -136,7 +135,6 @@ def main(): |
|
|
|
## |
|
|
|
## |
|
|
|
delete_parser.add_argument("-v", "--verbose", default=False, action="store_true", help="Enable verbose output") |
|
|
|
delete_parser.add_argument("-v", "--verbose", default=False, action="store_true", help="Enable verbose output") |
|
|
|
delete_parser.add_argument("-d", "--debug", default=False, action="store_true", help="Enable debug output. Includes verbose output") |
|
|
|
delete_parser.add_argument("-d", "--debug", default=False, action="store_true", help="Enable debug output. Includes verbose output") |
|
|
|
delete_parser.add_argument("--json", default=False, action="store_true", help="Print result in JSON format") |
|
|
|
|
|
|
|
delete_parser.set_defaults(func=pbincli.actions.delete) |
|
|
|
delete_parser.set_defaults(func=pbincli.actions.delete) |
|
|
|
|
|
|
|
|
|
|
|
# Add argcomplete trigger |
|
|
|
# Add argcomplete trigger |
|
|
|