src/mailto.py
def _parse_args(self):
        """Parse command-line arguments with argparse."""
        parser = ArgumentParser()
        parser.add_argument(
            'action',
            choices=('search',
                     'config',
                     'edit_client_rules',
                     'setclient',
                     'toggle',
                     'compose',
                     'reload',
                     'update',
                     'help'))
        parser.add_argument('query', nargs='?', default='')
        return parser.parse_args(self.wf.args)
Parse command-line arguments with argparse.
Parse command-line arguments with argparse.
Parse command - line arguments with argparse .
def _parse_args(self):
        parser = ArgumentParser()
        parser.add_argument(
            'action',
            choices=('search',
                     'config',
                     'edit_client_rules',
                     'setclient',
                     'toggle',
                     'compose',
                     'reload',
                     'update',
                     'help'))
        parser.add_argument('query', nargs='?', default='')
        return parser.parse_args(self.wf.args)
def _parse_args ( self ) : parser = ArgumentParser ( ) parser . add_argument ( 'action' , choices = ( 'search' , 'config' , 'edit_client_rules' , 'setclient' , 'toggle' , 'compose' , 'reload' , 'update' , 'help' ) ) parser . add_argument ( 'query' , nargs = '?' , default = '' ) return parser . parse_args ( self . wf . args )
Parse command-line arguments with argparse.
Parse command - line arguments with argparse .
"""Parse command-line arguments with argparse."""
self