     + '    dest The file path to install the image to\n' \
     + '  remove <id>           Removes a dependency on an asset\n' \
     + '    id   The (hash) ID of the image to remove from dependencies'
-  
-    
+
+
 # Interpret commands.
 switch process.argv[2]
   when 'help' then help()

]


# Redacts the user's API key from the given URL.
#
# @param [String] url the URL to redact the API key from
#
redactApiKey = (url) -> url.replace user.apiKey, '********'


# Builds a URL for downloading image information.
#

#
add = (args) ->
  id = args[3]

  # Check resolution.
  res = args[4]
  if !isValidResolution res
    log.error "That resolution '#{res}' isn't valid."
    return false

  # Add new image to configuration file.
  image =
    id: id
    resolution: getResolutionCode res
    destination: args[5]
  config.images.push image

  persistProject() # Update configuration file.

  log.info "Added image with ID '#{image.id}' as asset."

  install() # Freshly install all images.


# Removes an image from installed assets.
#
# @param [Object] args the arguments to the program
