], 'help': 'Add track to the blocklist'},
{'bl-delete': [
{'name': 'id', 'type': int, 'nargs': '?',
], 'help': 'Add track to the blocklist'},
{'bl-delete': [
{'name': 'id', 'type': int, 'nargs': '?',
def __init__(self, script_info,):
self.parser = None
self.info = dict(script_info)
def __init__(self, script_info,):
self.parser = None
self.info = dict(script_info)
opt_names = opt.pop('sw')
self.parser.add_argument(*opt_names, **opt)
# Add sub commands
opt_names = opt.pop('sw')
self.parser.add_argument(*opt_names, **opt)
# Add sub commands
title=f'{self.info["prog"]} commands as positional arguments',
description=f"""Use them after optionnal arguments.\n"{self.info["prog"]} command -h" for more info.""",
metavar='', dest='command')
for cmd in CMDS:
helpmsg = cmd.pop('help')
cmd, args = cmd.popitem()
title=f'{self.info["prog"]} commands as positional arguments',
description=f"""Use them after optionnal arguments.\n"{self.info["prog"]} command -h" for more info.""",
metavar='', dest='command')
for cmd in CMDS:
helpmsg = cmd.pop('help')
cmd, args = cmd.popitem()