diff options
author | Jan Pokorný <jpokorny@redhat.com> | 2015-05-28 23:08:30 +0200 |
---|---|---|
committer | Jan Pokorný <jpokorny@redhat.com> | 2015-05-29 20:01:02 +0200 |
commit | 6a536e54c77ad280edf06ff5ce36333a4c10bd26 (patch) | |
tree | bf312292b36505f18f325a9bd94d62fb6ef2e0b4 /completion.py | |
parent | 16d7da35030f069cc27d0fa773de4746e32bfcf1 (diff) | |
download | clufter-6a536e54c77ad280edf06ff5ce36333a4c10bd26.tar.gz clufter-6a536e54c77ad280edf06ff5ce36333a4c10bd26.tar.xz clufter-6a536e54c77ad280edf06ff5ce36333a4c10bd26.zip |
command et al.: consider common (short)opts (avoid them)
Because we need to pass extra piece of information to the responsible
function, it cannot be arranged as a property any longer.
Signed-off-by: Jan Pokorný <jpokorny@redhat.com>
Diffstat (limited to 'completion.py')
-rw-r--r-- | completion.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/completion.py b/completion.py index 25947b3..ac91e87 100644 --- a/completion.py +++ b/completion.py @@ -1,5 +1,5 @@ # -*- coding: UTF-8 -*- -# Copyright 2014 Red Hat, Inc. +# Copyright 2015 Red Hat, Inc. # Part of clufter project # Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt) """Shell completion formatters""" @@ -87,7 +87,7 @@ class BashCompletion(Completion): def handle_script(self, cmd): clsname = cmd.__class__.__name__ handle = self._namespaced_identifier(self._name, clsname) - _, opts = cmd.parser_desc_opts + _, opts = cmd.parser_desc_opts() # XXX not accurate without other opts main = """\ local opts="{0}" |