<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nikkie-ftnext</author_name>
  <author_url>https://blog.hatena.ne.jp/nikkie-ftnext/</author_url>
  <blog_title>nikkie-ftnextの日記</blog_title>
  <blog_url>https://nikkie-ftnext.hatenablog.com/</blog_url>
  <categories>
    <anon>Python標準ライブラリ</anon>
  </categories>
  <description>Python標準ライブラリからargparseの小ネタです 目次 目次 引数の短縮形 秘密はallow_abbrev P.S. argparse過去記事 引数の短縮形 ドキュメント「引数の短縮形 (先頭文字でのマッチング)」 parse_args() メソッドは、デフォルトで、長いオプションに曖昧さがない (先頭文字列が一意である) かぎり、先頭文字列に短縮して指定できます ※今回は説明のための例です。位置引数とオプション引数の使い分けには矜持があり、この例は過去記事のように位置引数にしたいです % python3 -V Python 3.14.3 % python3 example.py -…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnikkie-ftnext.hatenablog.com%2Fentry%2Fpython-argparse-allow-abbrev-default-true-tips&quot; title=&quot;argparseでは、--で始まるオプション引数は、一意に決まれば残りは省略して指定できる - nikkie-ftnextの日記&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>2026-06-18 23:41:59</published>
  <title>argparseでは、--で始まるオプション引数は、一意に決まれば残りは省略して指定できる</title>
  <type>rich</type>
  <url>https://nikkie-ftnext.hatenablog.com/entry/python-argparse-allow-abbrev-default-true-tips</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
