import { createRequire } from "module";
import yargs from "yargs";
import buildCommand from "./commands/build.js";
import devCommand from "./commands/dev.js";
const require = createRequire(import.meta.url);
const version = require("../package.json").version;
const argv = yargs(process.argv.slice(2))
    .scriptName("moonwave")
    .usage("Usage: moonwave [options]")
    .alias("v", "version")
    .version(version)
    .describe("version", "show version information")
    .alias("h", "help")
    .help("help")
    .describe("help", "show help")
    .showHelpOnFail(true)
    .command("build", "build the docs website", (yargs) => {
    yargs
        .boolean("publish")
        .describe("publish", "publish the built website to your gh-pages branch after building");
}, buildCommand)
    .command("dev", "run in development live-reload mode", (yargs) => {
    yargs
        .boolean("fresh")
        .describe("fresh", "deletes build cache before building")
        .alias("f", "fresh");
}, devCommand)
    .array("code")
    .describe("code", "the path to your Lua code. e.g. 'src'")
    .default("code", ["lib", "src"])
    .boolean("install")
    .describe("install", "re-install npm dependencies")
    .alias("i", "install")
    .strictCommands()
    .demandCommand()
    .parse();
export default argv;
//# sourceMappingURL=argv.js.map