<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tanigon</author_name>
  <author_url>https://blog.hatena.ne.jp/tanigon/</author_url>
  <blog_title>tanigonの日記</blog_title>
  <blog_url>https://tanigon.hatenadiary.org/</blog_url>
  <categories>
    <anon>Groovy</anon>
  </categories>
  <description>Groovyの場合、classでmain(args)とか宣言してれば問題ないものの、単純なスクリプトでクラス定義すらしない場合、以下のようにすれば取得できる。 #!/usr/bin/env groovy arg1 = this.args[0] print &quot;${arg1} passed.\n&quot;; thisは他になにがあるのかな。見てみよう</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftanigon.hatenadiary.org%2Fentry%2F20041117%2Fp2&quot; title=&quot; スクリプトでコマンドライン引数取得 - tanigonの日記&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>2004-11-17 00:00:01</published>
  <title> スクリプトでコマンドライン引数取得</title>
  <type>rich</type>
  <url>https://tanigon.hatenadiary.org/entry/20041117/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
