<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>podhmo</author_name>
  <author_url>https://blog.hatena.ne.jp/podhmo/</author_url>
  <blog_title>podhmo's diary</blog_title>
  <blog_url>https://pod.hatenablog.com/</blog_url>
  <categories>
    <anon>argparse</anon>
    <anon>python</anon>
    <anon>handofcats</anon>
    <anon>memo</anon>
  </categories>
  <description>過去にこのような記事を書いた。 コマンドライン引数によって、オプション引数が変わるコマンドの書き方のメモ(2 phase parse?) 今ならどうするだろう？という記事。 これはsubcommandに他ならない 元の記事では以下の様な実行の仕方を許容しているようだ。--fnというオプションを元に使えるコマンドを変えている。 # --fn無し $ python &lt;cli.py&gt; # --fn f $ python &lt;cli.py&gt; --fn f [--name name] [--verbose] [--y Y] [--z Z] # --fn g $ python &lt;cli.py&gt; --fn g…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fpod.hatenablog.com%2Fentry%2F2020%2F01%2F18%2F153058&quot; title=&quot;コマンドライン引数によって、オプションが変わるコマンドの書き方のメモ(2 phase parse?) (updated) - podhmo&amp;#39;s diary&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>2020-01-18 15:30:58</published>
  <title>コマンドライン引数によって、オプションが変わるコマンドの書き方のメモ(2 phase parse?) (updated)</title>
  <type>rich</type>
  <url>https://pod.hatenablog.com/entry/2020/01/18/153058</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
