{"version":"1.0","published":"2016-04-03 20:52:55","blog_title":"#daiiz\u30e1\u30e2","author_name":"daiiz","width":"100%","provider_url":"https://hatena.blog","categories":["python","tech"],"url":"https://daiiz.hatenablog.com/entry/2016/04/03/205255","provider_name":"Hatena Blog","image_url":null,"author_url":"https://blog.hatena.ne.jp/daiiz/","blog_url":"https://daiiz.hatenablog.com/","title":"argparse","description":"Python\u306b\u6a19\u6e96\u3067\u5099\u3048\u3089\u308c\u3066\u3044\u308bargparse\u3068\u3044\u3046\u3082\u306e\u3092\u4f7f\u3046\u3068\uff0c\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u4e0e\u3048\u3066Python\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u5b9f\u884c\u3059\u308b\u3053\u3068\u304c\u3067\u304d\u3066\u4fbf\u5229\uff0e\u540d\u524d\u306e\u901a\u308aarg\uff08\u5f15\u6570\uff09\u3092parse\uff08\u89e3\u6790\uff09\u3057\u3066\u304f\u308c\u308b\uff0e argparse\u81ea\u4f53\u306b\u3082\u3044\u308d\u3044\u308d\u3068\u7d30\u304b\u3044\u6a5f\u80fd\u304c\u3042\u308b\u3068\u601d\u3046\u304c\uff0c\u30b7\u30f3\u30d7\u30eb\u306b\u4f7f\u3046\u3060\u3051\u306a\u3089\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u66f8\u3051\u3070\u826f\u3044\uff0e import argparse if __name__ == '__main__': argp = argparse.ArgumentParser() # \u4e0e\u3048\u3089\u308c\u305f\u3044\u30aa\u30d7\u30b7\u30e7\u30f3\u3092\u7f85\u5217\u3059\u308b argp.add_argument('-n', '--name', default='Taro') arg\u2026","type":"rich","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fdaiiz.hatenablog.com%2Fentry%2F2016%2F04%2F03%2F205255\" title=\"argparse - #daiiz\u30e1\u30e2\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","height":"190"}