Browse Source

feat: `-v` and `--version` options

master
Dnomd343 2 years ago
parent
commit
d7084e946e
  1. 5
      kms.php

5
kms.php

@ -172,6 +172,11 @@ pcntl_signal(SIGQUIT, function() { // receive SIGQUIT signal
exit; exit;
}); });
if (in_array('-v', $argv) || in_array('--version', $argv)) {
echo "\033[33mkms-server\033[0m => \033[36m$VERSION\033[0m\n"; // show version info
exit;
}
logging::info('Loading kms-server (' . $VERSION . ')'); logging::info('Loading kms-server (' . $VERSION . ')');
load_params(); load_params();
load_vlmcsd_command($KMS_PORT); load_vlmcsd_command($KMS_PORT);

Loading…
Cancel
Save