<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Ruby on Roger Welin</title><link>https://rogerwelin.github.io/categories/ruby/</link><description>Recent content in Ruby on Roger Welin</description><generator>Hugo -- 0.155.0</generator><language>en-us</language><lastBuildDate>Thu, 14 Jan 2016 20:43:43 +0000</lastBuildDate><atom:link href="https://rogerwelin.github.io/categories/ruby/feed.xml" rel="self" type="application/rss+xml"/><item><title>Creating helpful command line applications in ruby</title><link>https://rogerwelin.github.io/2016/01/14/creating-helpful-command-line-applications-in-ruby/</link><pubDate>Thu, 14 Jan 2016 20:43:43 +0000</pubDate><guid>https://rogerwelin.github.io/2016/01/14/creating-helpful-command-line-applications-in-ruby/</guid><description>&lt;p&gt;So what makes a good and helpful command line application? I think these three point are important:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;easy to use&lt;/li&gt;
&lt;li&gt;helpful&lt;/li&gt;
&lt;li&gt;play well with others&lt;/li&gt;
&lt;/ul&gt;
&lt;!-- more --&gt;
&lt;p&gt;Bash is commonly used to write command line apps, but I can never shrug of the feeling of shame of writing a bash script with more than 30 lines.
That&amp;rsquo;s why I&amp;rsquo;m shaking things up here and showing how to use ruby instead. I&amp;rsquo;ll be using the optparse gem so you need to do a &lt;code&gt;gem install optparse&lt;/code&gt;
before trying out the shown examples.&lt;/p&gt;</description></item></channel></rss>