def add_arguments(self, parser):
commands = set(name[<NUM_LIT:3>:] for name in dir(self) if name.startswith('<STR_LIT>'))<EOL>parser.add_argument('<STR_LIT:action>', help='<STR_LIT>', nargs='<STR_LIT:?>',<EOL>choices=list(commands))<EOL>parser.add_argument('<STR_LIT>', help='<STR_LIT>',<EOL>nargs=argparse.REMAINDER)<EOL>
Add generic command-line arguments to a top-level argparse parser.

        After running this, the results from ``argparse.parse_args()``
        can be passed to :meth:`main`.