#NEWLINE# def _getparser( self ) : #NEWLINE# #INDENT# from _pytest._argcomplete import filescompleter #NEWLINE# optparser = MyOptionParser ( self , self . extra_info ) #NEWLINE# groups = ( self . _groups + [ self . _anonymous ] ) #NEWLINE# for group in groups : #NEWLINE# #INDENT# if group . options : #NEWLINE# #INDENT# desc = ( group . description or group . name ) #NEWLINE# arggroup = optparser . add_argument_group ( desc ) #NEWLINE# for option in group . options : #NEWLINE# #INDENT# n = option . names ( ) #NEWLINE# a = option . attrs ( ) #NEWLINE# arggroup . add_argument ( * n , ** a ) #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# optparser . add_argument ( FILE_OR_DIR , nargs = '*' ) . completer = filescompleter #NEWLINE# return optparser