#!/usr/bin/env ruby require File.expand_path("../../lib/commonmeta", __FILE__) if (ARGV & %w(--version -v help --help encode decode encode_id decode_id encode_by_blog encode_by_id json_feed_not_indexed json_feed_unregistered json_feed_by_blog json_feed_blog_id update_ghost_post generate_ghost_api_token)).empty? Commonmeta::CLI.start(ARGV.dup.unshift("convert")) else Commonmeta::CLI.start end