capybara/virtualenv/lib/python2.7/site-packages/pip/commands/completion.py
def run(self, options, args):
        """Prints the completion code of the given shell"""
        shells = COMPLETION_SCRIPTS.keys()
        shell_options = ['--' + shell for shell in sorted(shells)]
        if options.shell in shells:
            script = COMPLETION_SCRIPTS.get(options.shell, '')
            print(BASE_COMPLETION % {'script': script, 'shell': options.shell})
        else:
            sys.stderr.write(
                'ERROR: You must pass %s\n' % ' or '.join(shell_options)
            )
def run(self, options, args):
        shells = COMPLETION_SCRIPTS.keys()
        shell_options = ['--' + shell for shell in sorted(shells)]
        if options.shell in shells:
            script = COMPLETION_SCRIPTS.get(options.shell, '')
            print(BASE_COMPLETION % {'script': script, 'shell': options.shell})
        else:
            sys.stderr.write(
                'ERROR: You must pass %s\n' % ' or '.join(shell_options)
            )
def run ( self , options , args ) : shells = COMPLETION_SCRIPTS . keys ( ) shell_options = [ '--' + shell for shell in sorted ( shells ) ] if options . shell in shells : script = COMPLETION_SCRIPTS . get ( options . shell , '' ) print ( BASE_COMPLETION % { 'script' : script , 'shell' : options . shell } ) else : sys . stderr . write ( 'ERROR: You must pass %s\n' % ' or ' . join ( shell_options ) )
Prints the completion code of the given shell
Prints the completion code of the given shell