<s> """<STR_LIT>""" <EOL> import argcomplete <EOL> def argparse_autocompletion ( app ) : <EOL> exclude = [ ] <EOL> if hasattr ( app , '<STR_LIT>' ) and app . controller is not None : <EOL> if hasattr ( app . controller , '<STR_LIT>' ) : <EOL> exclude . append ( app . controller . _dispatch_option ) <EOL> if hasattr ( app . controller , '<STR_LIT>' ) : <EOL> exclude . append ( app . controller . _controller_option ) <EOL> argcomplete . autocomplete ( app . args , exclude = exclude ) <EOL> def load ( app ) : <EOL> app . hook . register ( '<STR_LIT>' , <EOL> argparse_autocompletion , weight = <NUM_LIT> ) </s>
