From b796661dc1cfd28853cb8bbf24485dbde8972c1a Mon Sep 17 00:00:00 2001 From: Stein Magnus Jodal Date: Mon, 9 May 2011 23:16:45 +0200 Subject: [PATCH] List --help-gst in Mopidy's --help listing --- mopidy/core.py | 3 +++ tests/help_test.py | 1 + 2 files changed, 4 insertions(+) diff --git a/mopidy/core.py b/mopidy/core.py index 61a47c4b..e510b698 100644 --- a/mopidy/core.py +++ b/mopidy/core.py @@ -45,6 +45,9 @@ def main(): def parse_options(): parser = optparse.OptionParser(version=u'Mopidy %s' % get_version()) + parser.add_option('--help-gst', + action='store_true', dest='help_gst', + help='show GStreamer help options') parser.add_option('-q', '--quiet', action='store_const', const=0, dest='verbosity_level', help='less output (warning level)') diff --git a/tests/help_test.py b/tests/help_test.py index 502673be..dccccc9c 100644 --- a/tests/help_test.py +++ b/tests/help_test.py @@ -13,6 +13,7 @@ class HelpTest(unittest.TestCase): output = process.communicate()[0] self.assert_('--version' in output) self.assert_('--help' in output) + self.assert_('--help-gst' in output) self.assert_('--quiet' in output) self.assert_('--verbose' in output) self.assert_('--save-debug-log' in output)