From 96c33449eefbf0c5257c56aa8109628351a18b59 Mon Sep 17 00:00:00 2001 From: Christopher Rosell Date: Thu, 19 Jan 2012 22:50:30 +0100 Subject: Plugins can now add extra arguments to the cli. --- src/livestreamer/cli.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/livestreamer/cli.py') diff --git a/src/livestreamer/cli.py b/src/livestreamer/cli.py index 7bb57e2..3239e81 100644 --- a/src/livestreamer/cli.py +++ b/src/livestreamer/cli.py @@ -59,6 +59,9 @@ def print_plugins(): def main(): + for name, plugin in livestreamer.get_plugins().items(): + plugin.handle_parser(parser) + arglist = sys.argv[1:] if os.path.exists(livestreamer.RCFILE): @@ -66,6 +69,9 @@ def main(): args = parser.parse_args(arglist) + for name, plugin in livestreamer.get_plugins().items(): + plugin.handle_args(args) + if args.url: handle_url(args) elif args.plugins: -- cgit v1.2.3