04a8189d2f8a1618d323172d1dc07f178ec63f85
[packages/precise/mcollective.git] / lib / mcollective / vendor / json / bin / edit_json.rb
1 #!/usr/bin/env ruby
2 require 'json/editor'
3
4 filename, encoding = ARGV
5 JSON::Editor.start(encoding) do |window|
6   if filename
7     window.file_open(filename)
8   end
9 end