def get_plan(self, name: str, json_output: bool=False):
    'Gets a backup plan by name\n\n        Args:\n            name (str): The name of the plan to retrieve\n            json_output (bool): Whether to print in JSON or a more human friendly way\n        '
    if (not name):
        _exit_if_errors(['--name is required'])
    (plan, errors) = self.rest.get_backup_plan(name)
    _exit_if_errors(errors)
    if json_output:
        print(json.dumps(plan, indent=2))
    else:
        self.human_print_plan(plan)
Gets a backup plan by name

Args:
    name (str): The name of the plan to retrieve
    json_output (bool): Whether to print in JSON or a more human friendly way
def get_plan(self, name: str, json_output: bool=False):
    'Gets a backup plan by name\n\n        Args:\n            name (str): The name of the plan to retrieve\n            json_output (bool): Whether to print in JSON or a more human friendly way\n        '
    if (not name):
        _exit_if_errors(['--name is required'])
    (plan, errors) = self.rest.get_backup_plan(name)
    _exit_if_errors(errors)
    if json_output:
        print(json.dumps(plan, indent=2))
    else:
        self.human_print_plan(plan)