How to use the metric function from commander
Find comprehensive JavaScript commander.metric code examples handpicked from public code repositorys.
GitHub: scality/cloudserver
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\'');
241
0
87
+ 3 other calls in file
commander.Option is the most popular function in commander (1786 examples)