~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to shell.py

Merge improved handling of parse errors from Benoît Pierre.

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
        self.default("help "+line)
170
170
 
171
171
    def default(self, line):
172
 
        args = shlex.split(line)
 
172
        try:
 
173
            args = shlex.split(line)
 
174
        except ValueError, e:
 
175
            print 'Parse error:', e
 
176
            return
 
177
 
173
178
        alias_args = get_alias(args[0])
174
179
        if alias_args is not None:
175
180
            args[0] = alias_args.pop(0)