lib/general-utils.js
function(argumentName, defaultValue) {
      var result = argMap[argumentName];

      if (this.isEmpty(result) && this.isNotEmpty(defaultValue)) {
        if (typeof defaultValue === 'object') {
          result = defaultValue[argumentName];
        } else {
          result = defaultValue;
        }
      }

      return result;
    }
function(argumentName, defaultValue) {
      var result = argMap[argumentName];

      if (this.isEmpty(result) && this.isNotEmpty(defaultValue)) {
        if (typeof defaultValue === 'object') {
          result = defaultValue[argumentName];
        } else {
          result = defaultValue;
        }
      }

      return result;
    }
function ( argumentName , defaultValue ) { var result = argMap [ argumentName ] ; if ( this . isEmpty ( result ) && this . isNotEmpty ( defaultValue ) ) { if ( typeof defaultValue === 'object' ) { result = defaultValue [ argumentName ] ; } else { result = defaultValue ; } } return result ; }
Return the commandline argument specified by argumentName. If not found, then return the specified defaultValue.

Example commandline:
"tessel run app/app.js climatePort=A foo=1.23 bar=4.56"

Example Usages (for the commandline shown above):
// returns "1.23"
tesselKit.tesselUtils.getArgumentValue("foo", "asdfgh");

// returns "qwerty"
tesselKit.tesselUtils.getArgumentValue("test", "qwerty");
Return the commandline argument specified by argumentName . If not found then return the specified defaultValue .