text: #!/usr/bin/env node
  // Copyright (c) Microsoft Corporation. All rights reserved.
  // Licensed under the MIT license.
  Object.defineProperty(exports, "__esModule", { value: true });
  const commander = require("commander");
  const log_1 = require("./log");
  commander.name("office-addin-cli");
  commander.version(process.env.npm_package_version || "(version not available)");
  // if the command is not known, display an error
  commander.on("command:*", function () {
      log_1.logErrorMessage(`The command syntax is not valid.\n`);
      process.exitCode = 1;
      commander.help();
  });
  if (process.argv.length > 2) {
      commander.parse(process.argv);
  }
  else {
      commander.help();
  }
  //# sourceMappingURL=cli.js.map