<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>any-programming</author_name>
  <author_url>https://blog.hatena.ne.jp/any-programming/</author_url>
  <blog_title>何でもプログラミング</blog_title>
  <blog_url>https://any-programming.hatenablog.com/</blog_url>
  <categories>
    <anon>F#</anon>
  </categories>
  <description>コマンドライン引数をパースするライブラリはすでにいくつも存在しますが、今回は簡単なものを実装してみました。簡単のため、ロング名のみ、値は=での指定のみに対応します。 some.exe --enable --value=10 今回実装したものの利用例 コマンドライン引数用のレコード型とデフォルト値を準備し、parse関数で引数を解析します。オプションの名前、説明、指定された時の挙動を渡して解析を行います。 type CommandLineOption = { Enabled : bool Name : string Value : int } let defaultOption = { Enab…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fany-programming.hatenablog.com%2Fentry%2F2018%2F04%2F29%2F232607&quot; title=&quot;F#でコマンドライン引数 - 何でもプログラミング&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>2018-04-29 23:26:07</published>
  <title>F#でコマンドライン引数</title>
  <type>rich</type>
  <url>https://any-programming.hatenablog.com/entry/2018/04/29/232607</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
