From 3eb240f316378015a9db35319e3f6a56c306dd14 Mon Sep 17 00:00:00 2001 From: rnhmjoj Date: Mon, 25 May 2020 10:05:20 +0200 Subject: [PATCH] add missing long options --- pirate/pirate.py | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/pirate/pirate.py b/pirate/pirate.py index 6aebd8f..247ef65 100755 --- a/pirate/pirate.py +++ b/pirate/pirate.py @@ -123,23 +123,24 @@ def parse_torrent_command(l): def parse_args(args_in): parser = argparse.ArgumentParser( description='finds and downloads torrents from the Pirate Bay') - parser.add_argument('-b', dest='browse', + parser.add_argument('-b', '--browse', action='store_true', help='display in Browse mode') - parser.add_argument('search', metavar='search', + parser.add_argument('search', nargs='*', help='term to search for') - parser.add_argument('-c', dest='category', metavar='category', + parser.add_argument('-c', '--category', help='specify a category to search', default='All') - parser.add_argument('-s', dest='sort', metavar='sort', + parser.add_argument('-s', '--sort', help='specify a sort option', default='SeedersDsc') - parser.add_argument('-R', dest='recent', action='store_true', + parser.add_argument('-R', '--recent', + action='store_true', help='torrents uploaded in the last 48hours.' '*ignored in searches*') - parser.add_argument('-l', dest='list_categories', + parser.add_argument('-l', '--list-categories', action='store_true', help='list categories') parser.add_argument('--list-sorts', '--list_sorts', - dest='list_sorts', action='store_true', + action='store_true', help='list Sortable Types') parser.add_argument('-L', '--local', dest='database', help='a csv file containing the Pirate Bay database '