~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/shellcomplete.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2007-02-13 10:06:58 UTC
  • mfrom: (2279.2.1 trivial)
  • Revision ID: pqm@pqm.ubuntu.com-20070213100658-2d02fdea9b5ac1d5
(mbp,trivial) fix option display in shell-complete 

Show diffs side-by-side

added added

removed removed

Lines of Context:
49
49
    for opt in options:
50
50
        if opt.short_name:
51
51
            outfile.write('"(--%s -%s)"{--%s,-%s}\n'
52
 
                    % (opt.name, opt.short_name, opt.name, opt.short_name))
 
52
                    % (opt.name, opt.short_name(), opt.name, opt.short_name()))
53
53
        else:
54
54
            outfile.write('--%s\n' % opt.name)
55
55