#!/usr/bin/env ruby # frozen_string_literal: true lib = File.expand_path(File.dirname(__FILE__) + "/../lib") $LOAD_PATH.unshift(lib) if File.directory?(lib) && !$LOAD_PATH.include?(lib) require "turkish_id" @help = ' Usage turkish_id QUERY Examples turkish_id 10000000078 turkish_id 10000000146 ' if ARGV[0] result = TurkishId.new(ARGV[0]).valid? $stdout.puts result exit result ? 0 : 1 else $stdout.puts @help end