~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/help.py

- more refactoring of and tests for option parsing

Show diffs side-by-side

added added

removed removed

Lines of Context:
125
125
    outfile.write('\noptions:\n')
126
126
    for option_name, option in sorted(options.items()):
127
127
        l = '    --' + option_name
 
128
        if option.type is not None:
 
129
            l += ' ' + option.argname.upper()
128
130
        short_name = option.short_name()
129
131
        if short_name:
130
132
            assert len(short_name) == 1