lib/stamplay.js
function _detectComment(argv){
  var comment = ''
  if(argv._.length == 1){
    if(argv.m && typeof argv.m == 'string') comment = argv.m
    else if (argv.message && typeof argv.message == 'string') comment = argv.message
    return comment
  } else {
    console.log(chalk.red.bold('Invalid command: use stamplay deploy -m "YOUR MESSAGE"'))
    process.exit(1)
  }
}
function _detectComment(argv){
  var comment = ''
  if(argv._.length == 1){
    if(argv.m && typeof argv.m == 'string') comment = argv.m
    else if (argv.message && typeof argv.message == 'string') comment = argv.message
    return comment
  } else {
    console.log(chalk.red.bold('Invalid command: use stamplay deploy -m "YOUR MESSAGE"'))
    process.exit(1)
  }
}
function _detectComment ( argv ) { var comment = '' if ( argv . _ . length == 1 ) { if ( argv . m && typeof argv . m == 'string' ) comment = argv . m else if ( argv . message && typeof argv . message == 'string' ) comment = argv . message return comment } else { console . log ( chalk . red . bold ( 'Invalid command: use stamplay deploy -m "YOUR MESSAGE"' ) ) process . exit ( 1 ) } }
Detect if the option -m is present in the command
Detect if the option - m is present in the command