How to use the metric function from commander

Find comprehensive JavaScript commander.metric code examples handpicked from public code repositorys.

164
165
166
167
168
169
170
171
172
173
    ssl } =
    commander;
const requiredOptions = { host, port, accessKey, secretKey };
// If not old style bucket metrics, we require usage of the metric option
if (metricType !== 'buckets') {
    requiredOptions.metric = commander.metric;
    const validMetrics = ['buckets', 'accounts', 'users', 'service'];
    if (validMetrics.indexOf(commander.metric) < 0) {
        logger.error('metric must be \'buckets\', \'accounts\', ' +
            '\'users\', or \'service\'');
fork icon241
star icon0
watch icon87

+ 3 other calls in file

Other functions in commander

Sorted by popularity

function icon

commander.Option is the most popular function in commander (1786 examples)