def asset_options
      # include all base action options
      result = options.deep_clone

      # anything left on the command line should be filters as all options have
      # been consumed, for pass through options, filters must be ignored by overwritting them
      filters = args.dup
      filters += result[:filter] if result[:filter]
      result = result.merge(:filter => filters) unless filters.empty?

      # asset type to create
      type = result[:type] || asset_type
      result = result.merge(:type => type)

      # optional key: :assets_folder, absolute path or relative to config file if :base_folder is specified
      result = result.merge(:assets_folder => configuration[:folders][:assets]) if configuration[:folders]

      # optional key: :base_folder is the folder that contains the main config file
      result = result.merge(:base_folder => File.dirname(configuration[:configuration_filename])) if configuration[:configuration_filename]

      result
    end
def asset_options
      # include all base action options
      result = options.deep_clone

      # anything left on the command line should be filters as all options have
      # been consumed, for pass through options, filters must be ignored by overwritting them
      filters = args.dup
      filters += result[:filter] if result[:filter]
      result = result.merge(:filter => filters) unless filters.empty?

      # asset type to create
      type = result[:type] || asset_type
      result = result.merge(:type => type)

      # optional key: :assets_folder, absolute path or relative to config file if :base_folder is specified
      result = result.merge(:assets_folder => configuration[:folders][:assets]) if configuration[:folders]

      # optional key: :base_folder is the folder that contains the main config file
      result = result.merge(:base_folder => File.dirname(configuration[:configuration_filename])) if configuration[:configuration_filename]

      result
    end
asset options separated from assets to make it easier to override assets