src/cli-config.js
function createArguments() {
  var cli = commandLineArgs([{
    name: 'file',
    alias: 'f',
    type: String,
    defaultValue: "",
    description: "Full path to the credentials file.",
    required: true
  }, {
    name: 'section',
    alias: 's',
    type: String,
    defaultValue: "default",
    description: "Title of the section that will be added to the .edgerc file."
  }, {
    name: 'path',
    alias: 'p',
    type: String,
    defaultValue: os.homedir() + "/.edgerc",
    description: "Full path to the .edgerc file."
  }, {
    name: 'help',
    alias: 'h',
    description: "Display help and usage information."
  }]);

  return cli;
}
function createArguments() {
  var cli = commandLineArgs([{
    name: 'file',
    alias: 'f',
    type: String,
    defaultValue: "",
    description: "Full path to the credentials file.",
    required: true
  }, {
    name: 'section',
    alias: 's',
    type: String,
    defaultValue: "default",
    description: "Title of the section that will be added to the .edgerc file."
  }, {
    name: 'path',
    alias: 'p',
    type: String,
    defaultValue: os.homedir() + "/.edgerc",
    description: "Full path to the .edgerc file."
  }, {
    name: 'help',
    alias: 'h',
    description: "Display help and usage information."
  }]);

  return cli;
}
function createArguments ( ) { var cli = commandLineArgs ( [ { name : 'file' , alias : 'f' , type : String , defaultValue : "" , description : "Full path to the credentials file." , required : true } , { name : 'section' , alias : 's' , type : String , defaultValue : "default" , description : "Title of the section that will be added to the .edgerc file." } , { name : 'path' , alias : 'p' , type : String , defaultValue : os . homedir ( ) + "/.edgerc" , description : "Full path to the .edgerc file." } , { name : 'help' , alias : 'h' , description : "Display help and usage information." } ] ) ; return cli ; }
Create and return an instance of the CommandLineArgs object with the desired arguments specified.
Create and return an instance of the CommandLineArgs object with the desired arguments specified .