1. Travis Shirk
  2. eyeD3

Commits

Travis Shirk  committed 03ee2b4

--plugins returns 0 exit status now and docs

  • Participants
  • Parent commits c6920ea
  • Branches stable

Comments (0)

Files changed (3)

File bin/cli_examples.sh

View file
 # [[[section LAME_PLUGIN]]]
 eyeD3 -P lameinfo src/test/data/notag-vbr.mp3
 # [[[endsection]]]
+
+# [[[section PLUGINS_LIST]]]
+eyeD3 --plugins
+# [[[endsection]]]

File docs/cli.rst

View file
 files are found.
 
 To list the available plugins use the ``--plugins`` option and to select a
-plugin pass its name using ``--plugin=<name>``. The ``echo`` plugin, for
-example, will print each file ``eyeD3`` feeds it.
+plugin pass its name using ``--plugin=<name>``.
 
-.. code-block:: sh
-
-  $ eyeD3 --plugins
-
-  - classic
-  Classic eyeD3 interface for viewing and editing tags.
-
-  - echo:
-  Displays each filename passed to the plugin.
-
-  ....
-
-  $ eyeD3 --plugin=echo /music/Adolescents
-  Adolescents - 16 - Things Start Moving.mp3	[ /music/Adolescents/1981 - Adolescents ]
-  Adolescents - 03 - Wrecking Crew.mp3		[ /music/Adolescents/1981 - Adolescents ]
-  Adolescents - 12 - No Friends.mp3		[ /music/Adolescents/1981 - Adolescents ]
-
-  ...
+.. {{{cog cli_example("bin/cli_examples.sh", "PLUGINS_LIST", lang="bash") }}}
+.. {{{end}}}
 
 If no ``--plugin=`` option is provided the *default* plugin is selected.
 Currently this is set to be the command line tag viewer/editor that has been

File src/eyed3/main.py

View file
 
 
 def main(args, config):
+    if args.list_plugins:
+        _listPlugins(config)
+        return 0
+
     args.plugin.start(args, config)
 
     # Process paths (files/directories)
     # Reparse the command line including options from the config.
     args = parser.parse_args(args=cmd_line_args)
 
-    if args.list_plugins:
-        _listPlugins(config)
-        parser.exit(0)
-
     args.plugin = plugin
     eyed3.log.debug("command line args: %s", args)
     eyed3.log.debug("plugin is: %s", plugin)