function extractArgs(string, definitions) {
  // remove placeholders from string
  string = string.replace(/(?![^(]*\)){([^}]+)}/g, '')

  // parse args in the remaining string
  return parseArgs(string, definitions)
}
Extracts standard CLI-style arguments from a string. First removes placeholders
from the string.

@param {String} string
@param {Array} definitions