mirror of
https://gitea.phreedom.club/localhost_frssoft/funkwlmpv
synced 2024-11-23 12:49:20 +02:00
argparse help changed
This commit is contained in:
parent
3f700b6b8f
commit
bf5f4c9811
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue