<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>buty4649</author_name>
  <author_url>https://blog.hatena.ne.jp/buty4649/</author_url>
  <blog_title>ぶていのログでぶログ</blog_title>
  <blog_url>https://tech.buty4649.net/</blog_url>
  <categories>
    <anon>mruby</anon>
    <anon>Ruby</anon>
    <anon>magni</anon>
    <anon>CLI</anon>
  </categories>
  <description>mrubyでいくつかのCLIツールを作っているのだが、ツールごとにオプションのパーサを作ったりしていて本来作りたい機能をつくるまでの道程が長くなっていた…。 これはいかんとなったので、CLIフレームワークをほそぼそと作っていたのだがやっといい感じになったのでブログにすることにした。 github.com ThorのAPIを真似て作ったので、トールの息子であるmagniという名前にしてみた*1。 このmagni、大分いい感じにできたので便利ポイントを紹介したい。 1. 手軽な導入 mrubyでCLIツールを作る場合、以下を準備しなくてはならなかった。 mrubyのソースコード build_con…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftech.buty4649.net%2Fentry%2F2025%2F10%2F20%2F124858&quot; title=&quot;mruby向け軽量CLIフレームワーク「magni」を作った - ぶていのログでぶログ&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-10-20 12:48:58</published>
  <title>mruby向け軽量CLIフレームワーク「magni」を作った</title>
  <type>rich</type>
  <url>https://tech.buty4649.net/entry/2025/10/20/124858</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
