#!/usr/bin/env node "use strict"; // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT license. Object.defineProperty(exports, "__esModule", { value: true }); const commander_1 = require("commander"); const office_addin_usage_data_1 = require("office-addin-usage-data"); /* global process */ const commander = new commander_1.Command(); 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 () { (0, office_addin_usage_data_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