From bf5f4c9811cef492276c9e3bdfdfedce8b697421 Mon Sep 17 00:00:00 2001 From: localhost_frssoft Date: Thu, 25 Jul 2024 14:01:05 +0300 Subject: [PATCH] argparse help changed --- funkwlplay.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/funkwlplay.py b/funkwlplay.py index 9244cba..f0c21dd 100755 --- a/funkwlplay.py +++ b/funkwlplay.py @@ -10,13 +10,13 @@ with open('instances') as instances: parser = argparse.ArgumentParser( - prog='funkwhale playlist', + prog='funkwlplay', description='Create playlist from query or just random playlist tracks from funkwhale instances') -parser.add_argument('-s', '--search') -parser.add_argument('-t', '--tag') -parser.add_argument('-i', '--instance') -parser.add_argument('-r', '--recursion', type=int, default=0) -parser.add_argument('-d', '--depth', type=int, default=5) +parser.add_argument('-s', '--search', help='This global search on funkwhale instances, it matches artists, albums, tracks, etc...') +parser.add_argument('-t', '--tag', help='This tag search, use this as genre search') +parser.add_argument('-i', '--instance', help='Specify instance, by default search on all instances in instances file') +parser.add_argument('-r', '--recursion', type=int, default=0, help='Use recursion if instance contain more than 50 tracks') +parser.add_argument('-d', '--depth', type=int, default=5, help='Depth of recursion, default is 5 pages, 250 tracks') args = parser.parse_args() if args.instance: instances = [args.instance]