From 4fdcf258b41b80fb9a910f7c05fe3893f2aacf78 Mon Sep 17 00:00:00 2001 From: jebcoat Date: Tue, 16 Jan 2024 23:21:50 +0700 Subject: [PATCH 1/2] changed default expire value --- pbincli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbincli/cli.py b/pbincli/cli.py index ffea657..dcc8c56 100755 --- a/pbincli/cli.py +++ b/pbincli/cli.py @@ -46,7 +46,7 @@ def main(): send_parser.add_argument("-t", "--text", help="Text in quotes. Ignored if used stdin. If not used, forcefully used stdin") send_parser.add_argument("-f", "--file", help="Example: image.jpg or full path to file") send_parser.add_argument("-p", "--password", help="Password for encrypting paste") - send_parser.add_argument("-E", "--expire", default="1day", action="store", + send_parser.add_argument("-E", "--expire", default="argparse.SUPPRESS, action="store", choices=["5min", "10min", "1hour", "1day", "1week", "1month", "1year", "never"], help="Paste lifetime (default: 1day)") send_parser.add_argument("-B", "--burn", default=argparse.SUPPRESS, action="store_true", help="Set \"Burn after reading\" flag") send_parser.add_argument("-D", "--discus", default=argparse.SUPPRESS, action="store_true", help="Open discussion for sent paste") From 78c545c191ca128eceba4257104e514b88efa8ca Mon Sep 17 00:00:00 2001 From: R4SAS Date: Thu, 25 Jul 2024 20:37:13 +0300 Subject: [PATCH 2/2] Delete extra quote --- pbincli/cli.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pbincli/cli.py b/pbincli/cli.py index dcc8c56..0c58fff 100755 --- a/pbincli/cli.py +++ b/pbincli/cli.py @@ -46,7 +46,7 @@ def main(): send_parser.add_argument("-t", "--text", help="Text in quotes. Ignored if used stdin. If not used, forcefully used stdin") send_parser.add_argument("-f", "--file", help="Example: image.jpg or full path to file") send_parser.add_argument("-p", "--password", help="Password for encrypting paste") - send_parser.add_argument("-E", "--expire", default="argparse.SUPPRESS, action="store", + send_parser.add_argument("-E", "--expire", default=argparse.SUPPRESS, action="store", choices=["5min", "10min", "1hour", "1day", "1week", "1month", "1year", "never"], help="Paste lifetime (default: 1day)") send_parser.add_argument("-B", "--burn", default=argparse.SUPPRESS, action="store_true", help="Set \"Burn after reading\" flag") send_parser.add_argument("-D", "--discus", default=argparse.SUPPRESS, action="store_true", help="Open discussion for sent paste")