"""Entry point for project-manager-tui."""

import argparse
from pathlib import Path

from project_manager_tui.config import load_config
from project_manager_tui.tui import main as tui_main


def main():
  parser = argparse.ArgumentParser(description="Project management TUI")
  parser.add_argument("--config", type=Path, default=None,
                      help="Path to config file (default: ~/.project-manager-tui.toml)")
  args = parser.parse_args()

  config = load_config(args.config)
  tui_main(config)


if __name__ == "__main__":
  main()
