--version

Massimo Melina committed May 6, 2026 at 23:42 UTC 206aaf2ab24b983c96bcca18d428ee4990bdfcc0
1 file changed +5
src/const.ts
+5
@@ -41,6 +41,11 @@ export const APP_PATH = dirname(IS_BINARY ? process.execPath : __dirname) // __d
41 export const MIME_AUTO = 'auto'
42 export const CONFIG_FILE = 'config.yaml'
43
44 +if (argv.version) {
45 + process.stdout.write(VERSION+ '\n')
46 + process.exit(0)
47 +}
48 +
49 // we want this to be the first stuff to be printed, then we print it in this module, that is executed at the beginning
50 if (DEV) {
51 console.clear()