Files
starface-outlook-sync-addin/node_modules/office-addin-cli/lib/cli.js
T
Stefan Hacker 37ad745546 first commit
2026-04-03 09:38:48 +02:00

24 lines
849 B
JavaScript

#!/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