| Server IP : 159.203.156.69 / Your IP : 216.73.217.172 Web Server : nginx/1.24.0 System : Linux main-ubuntu 6.8.0-71-generic #71-Ubuntu SMP PREEMPT_DYNAMIC Tue Jul 22 16:52:38 UTC 2025 x86_64 User : root ( 0) PHP Version : 8.3.6 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : OFF Directory : /var/www/tanviranik.com/node_modules/vinext/dist/ |
Upload File : |
//#region src/cli-args.d.ts
/**
* CLI argument parser for the vinext CLI.
*
* Parses flags for `vinext dev`, `vinext start`, `vinext build`, etc.
* Validates that value-taking flags (`--port`, `--hostname`) have actual values
* rather than silently consuming the next flag or returning NaN/undefined.
*/
type ParsedArgs = {
port?: number;
hostname?: string;
help?: boolean;
verbose?: boolean;
turbopack?: boolean;
experimental?: boolean;
prerenderAll?: boolean;
prerenderConcurrency?: number;
precompress?: boolean;
};
declare function parsePositiveIntegerArg(raw: string, flag: string): number;
/**
* Parse CLI arguments into a structured object.
*
* Handles both `--flag value` and `--flag=value` forms for value-taking flags.
*
* Used by `vinext dev`, `build`, `start`, `lint`, `check`, and `init` commands.
* The `deploy` command uses `parseDeployArgs` (a `node:util` wrapper) for its
* own flag set including `--env`, `--skip-build`, etc.
*/
declare function parseArgs(args: string[]): ParsedArgs;
//#endregion
export { parseArgs, parsePositiveIntegerArg };
//# sourceMappingURL=cli-args.d.ts.map