param(
    [string]$ConfigPath = "D:\projects\skills\vip-report\config.yaml",
    [string]$ReportMonth = "",
    [int]$ReportYear = 0,
    [int]$CompareYear = 0
)

$ErrorActionPreference = "Stop"
$root = Split-Path -Parent $PSScriptRoot

$pythonArgs = @(
    "$root\scripts\sync_cep_traffic_assets.py",
    "--config", "$ConfigPath"
)
if ($ReportMonth) {
    $pythonArgs += @("--report-month", "$ReportMonth")
}
if ($ReportYear -gt 0) {
    $pythonArgs += @("--report-year", "$ReportYear")
}
if ($CompareYear -gt 0) {
    $pythonArgs += @("--compare-year", "$CompareYear")
}

python @pythonArgs
