src/cli.js
function setCliConfiguration() {
  return yargs
    .usage('usage: $0 [options] <aws-elasticsearch-cluster-endpoint>')
    .option('h', {
      alias: 'host',
      default: HOST || '127.0.0.1',
      demand: false,
      describe: 'Host IP Address',
      type: 'string',
    })
    .option('p', {
      alias: 'port',
      default: PORT || 9200,
      demand: false,
      describe: 'Host Port',
      type: 'number',
    })
    .option('r', {
      alias: 'region',
      default: REGION || 'us-west-2',
      demand: false,
      describe: 'AWS region',
      type: 'string',
    })
    .option('e', {
      alias: 'endpoint',
      default: ENDPOINT,
      demand: true,
      describe: 'AWS Elasticsearch Endpoint',
      type: 'string',
    })
    .option('c', {
      alias: 'profile',
      default: AWS_PROFILE || 'default',
      demand: false,
      describe: 'AWS Credentials Profile',
      type: 'string',
    })
    .option('d', {
      alias: 'debug',
      default: DEBUG || false,
      demand: false,
      describe: 'Provides debug logging',
      type: 'boolean',
    })
    .help()
    .version()
    .strict()
}
function setCliConfiguration() {
  return yargs
    .usage('usage: $0 [options] <aws-elasticsearch-cluster-endpoint>')
    .option('h', {
      alias: 'host',
      default: HOST || '127.0.0.1',
      demand: false,
      describe: 'Host IP Address',
      type: 'string',
    })
    .option('p', {
      alias: 'port',
      default: PORT || 9200,
      demand: false,
      describe: 'Host Port',
      type: 'number',
    })
    .option('r', {
      alias: 'region',
      default: REGION || 'us-west-2',
      demand: false,
      describe: 'AWS region',
      type: 'string',
    })
    .option('e', {
      alias: 'endpoint',
      default: ENDPOINT,
      demand: true,
      describe: 'AWS Elasticsearch Endpoint',
      type: 'string',
    })
    .option('c', {
      alias: 'profile',
      default: AWS_PROFILE || 'default',
      demand: false,
      describe: 'AWS Credentials Profile',
      type: 'string',
    })
    .option('d', {
      alias: 'debug',
      default: DEBUG || false,
      demand: false,
      describe: 'Provides debug logging',
      type: 'boolean',
    })
    .help()
    .version()
    .strict()
}
function setCliConfiguration ( ) { return yargs . usage ( 'usage: $0 [options] <aws-elasticsearch-cluster-endpoint>' ) . option ( 'h' , { alias : 'host' , default : HOST || '127.0.0.1' , demand : false , describe : 'Host IP Address' , type : 'string' , } ) . option ( 'p' , { alias : 'port' , default : PORT || 9200 , demand : false , describe : 'Host Port' , type : 'number' , } ) . option ( 'r' , { alias : 'region' , default : REGION || 'us-west-2' , demand : false , describe : 'AWS region' , type : 'string' , } ) . option ( 'e' , { alias : 'endpoint' , default : ENDPOINT , demand : true , describe : 'AWS Elasticsearch Endpoint' , type : 'string' , } ) . option ( 'c' , { alias : 'profile' , default : AWS_PROFILE || 'default' , demand : false , describe : 'AWS Credentials Profile' , type : 'string' , } ) . option ( 'd' , { alias : 'debug' , default : DEBUG || false , demand : false , describe : 'Provides debug logging' , type : 'boolean' , } ) . help ( ) . version ( ) . strict ( ) }
Defines CLI options
@return {Object}
Defines CLI options