```ruby
require "figaro/cli/task"

module Figaro
  class CLI < Thor
    class HerokuSet < Task
      def run
        system(configuration, command)
      end

      private

      def command
        "heroku config:set #{for_app} #{vars}"
      end

      def for_app
        options[:app] ? "--app=#{options[:app]}" : nil
      end

      def vars
        configuration.keys.map { |k| var(k) }.join(" ")
      end

      def var(key)
        Gem.win_platform? ? "#{key}=%#{key}%" : "#{key}=$#{key}"
      end
    end
  end
end
```

Switch the order of "heroku config:set" arguments to read better
user
```ruby
require "figaro/cli/task"

module Figaro
  class CLI < Thor
    class HerokuSet < Task
      def run
        system(configuration, command)
      end

      private

      def command
        "heroku config:set #{vars} #{for_app}"
      end

      def for_app
        options[:app] ? "--app=#{options[:app]}" : nil
      end

      def vars
        configuration.keys.map { |k| var(k) }.join(" ")
      end

      def var(key)
        Gem.win_platform? ? "#{key}=%#{key}%" : "#{key}=$#{key}"
      end
    end
  end
end
```
assistant