#!/usr/bin/env nu

# Simple wrapper to run the nushell updater
# Usage: nu run_nushell_updater.nu [command]

source update_nushell.nu

let command = try {
    if ($env.args | length) > 0 {
        $env.args.0
    } else {
        "help"
    }
} catch { "help" }

nushell-updater $command