aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/livestreamer/cli.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/livestreamer/cli.py')
-rw-r--r--src/livestreamer/cli.py6
1 files changed, 6 insertions, 0 deletions
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: