~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Martin Pool
  • Date: 2005-06-22 08:58:45 UTC
  • Revision ID: mbp@sourcefrog.net-20050622085845-3cd87ad334ff49e9
- new 'plugins' command
- fix inverted sense of --no-plugins option

Show diffs side-by-side

added added

removed removed

Lines of Context:
1270
1270
 
1271
1271
 
1272
1272
 
 
1273
class cmd_plugins(Command):
 
1274
    """List plugins"""
 
1275
    hidden = True
 
1276
    def run(self):
 
1277
        import bzrlib.plugin
 
1278
        print dir(bzrlib.plugin)
 
1279
 
 
1280
 
 
1281
 
1273
1282
# list of all available options; the rhs can be either None for an
1274
1283
# option that takes no argument, or a constructor function that checks
1275
1284
# the type.
1530
1539
    try:
1531
1540
        # some options like --builtin and --no-plugins have special effects
1532
1541
        argv, master_opts = _parse_master_args(argv)
1533
 
        if 'no-plugins' not in master_opts:
 
1542
        if not master_opts['no-plugins']:
1534
1543
            bzrlib.load_plugins()
1535
1544
 
1536
1545
        args, opts = parse_args(argv)