def create_parser(self, prog):

        prog = os.path.basename(prog)
        parser = argparse.ArgumentParser(prog=prog)
        for option in self.get_options():
            parser.add_argument(*option.args, **option.kwargs)
        
        return parser
Get for user
dataset/ETHPy150Open danjac/Flask-Script/flaskext/script.py/Manager.create_parser--crossover with--dataset/ETHPy150Open nvbn/coviolations_web/projects/models.py/ProjectManager.get_for_user