{"author_url":"https://blog.hatena.ne.jp/shuzo_kino/","blog_url":"https://shuzo-kino.hateblo.jp/","provider_url":"https://hatena.blog","url":"https://shuzo-kino.hateblo.jp/entry/2015/01/29/233917","width":"100%","categories":["ruby"],"title":"slop\u3067CLI\u30a2\u30d7\u30ea\u306e\u5f15\u6570\u3092\u3088\u308d\u3057\u304f\u3084\u308b","type":"rich","author_name":"shuzo_kino","provider_name":"Hatena Blog","description":"slop\u3067CLI\u30a2\u30d7\u30ea\u306e\u5f15\u6570\u3092\u3088\u308d\u3057\u304f\u3084\u308bgem\u3067\u3059\u3002 require 'slop' opts = Slop.parse do |o| o.banner = \"usage: connect [options] ...\" o.string '-h', '--host', default: \"localhost\" o.integer '-p', '--port', default: 80 o.on '--version', '-v' do puts \"v0.0.1\" exit end end if ARGV == [] puts opts exit else p ARGV puts opts[:h\u2026","height":"190","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fshuzo-kino.hateblo.jp%2Fentry%2F2015%2F01%2F29%2F233917\" title=\"slop\u3067CLI\u30a2\u30d7\u30ea\u306e\u5f15\u6570\u3092\u3088\u308d\u3057\u304f\u3084\u308b - Bye Bye Moore\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","image_url":null,"version":"1.0","published":"2015-01-29 23:39:17","blog_title":"Bye Bye Moore"}