<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="http://blogs.msdn.com/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Managing Command Line Arguments</title><link>http://blogs.msdn.com/howard_dierking/archive/2008/06/26/managing-command-line-arguments.aspx</link><description>I've been spending many of my recent developer cycles writing console applications to perform various tasks in an ETL process.&amp;#160; And yes, before you ask, I had started out initially modeling my ETL process with SSIS - and while I could eventually</description><dc:language>en</dc:language><generator>CommunityServer 2.1 SP1 (Build: 61025.2)</generator><item><title>Arjan`s World    &amp;raquo; LINKBLOG for June 28, 2008</title><link>http://blogs.msdn.com/howard_dierking/archive/2008/06/26/managing-command-line-arguments.aspx#8664595</link><pubDate>Sat, 28 Jun 2008 23:00:39 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8664595</guid><dc:creator>Arjan`s World    &amp;raquo; LINKBLOG for June 28, 2008</dc:creator><description>&lt;p&gt;PingBack from &lt;a rel="nofollow" target="_new" href="http://www.arjansworld.com/2008/06/28/linkblog-for-june-28-2008/"&gt;http://www.arjansworld.com/2008/06/28/linkblog-for-june-28-2008/&lt;/a&gt;&lt;/p&gt;
</description></item><item><title>re: Managing Command Line Arguments</title><link>http://blogs.msdn.com/howard_dierking/archive/2008/06/26/managing-command-line-arguments.aspx#8664932</link><pubDate>Sun, 29 Jun 2008 01:01:54 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8664932</guid><dc:creator>OJ</dc:creator><description>&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;It's definitely worth having a class like this handy for when you need to crank out yet another command-line-driven application. I'd like to make a couple of comments about this class though (from an API/reuse perspective).&lt;/p&gt;
&lt;p&gt;* GetSwitch() doesn't actually get the switch. This would probably be better if you named it HasSwitch() or ContainsSwitch() or something similar.&lt;/p&gt;
&lt;p&gt;* ParseParam() is another function that could do with a name change. On the surface it'd make much more sense to call it GetSwitchParameter() or something like that. ParseParam() doesn't really indicate that you're extracting the value from a switch parameter - particularly not in a typed fashion.&lt;/p&gt;
&lt;p&gt;Naming functions in such a manner which indicates what they're actually doing is very beneficial, particularly if other people are going to be using your code. You might always want to mention that this code requires .NET 3.5.&lt;/p&gt;
&lt;p&gt;Thanks for listening. Nice post :)&lt;/p&gt;
&lt;p&gt;Cheers&lt;/p&gt;
&lt;p&gt;OJ&lt;/p&gt;</description></item><item><title>re: Managing Command Line Arguments</title><link>http://blogs.msdn.com/howard_dierking/archive/2008/06/26/managing-command-line-arguments.aspx#8666184</link><pubDate>Sun, 29 Jun 2008 07:52:42 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8666184</guid><dc:creator>hdierking</dc:creator><description>&lt;p&gt;OJ - &lt;/p&gt;
&lt;p&gt;totally agree with &amp;quot;HasSwitch&amp;quot; - that's a much more clear expression of intent.&lt;/p&gt;
&lt;p&gt;also agree with the need to rename &amp;quot;ParseParam&amp;quot; - but to avoid potential confusion between params and switches, I would settle more on a name like &amp;quot;GetParamValue&amp;quot;&lt;/p&gt;
&lt;p&gt;just one &amp;quot;ctrl+shift+r&amp;quot; -&amp;gt; &amp;quot;Rename&amp;quot; and problem solved :)&lt;/p&gt;
&lt;p&gt;thanks!&lt;/p&gt;
</description></item><item><title>re: Managing Command Line Arguments</title><link>http://blogs.msdn.com/howard_dierking/archive/2008/06/26/managing-command-line-arguments.aspx#8678948</link><pubDate>Wed, 02 Jul 2008 01:44:26 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8678948</guid><dc:creator>Aaron Murrell</dc:creator><description>&lt;p&gt;I have actually seen Robert C. Martin give super presentations on refactoring using the example of a command line parsing framework. &amp;nbsp;Pretty fun to watch him if you ever get the chance. &amp;nbsp;I don't think I've seen his code for it online - but I think yours is at LEAST as good as his :)&lt;/p&gt;</description></item><item><title>re: Managing Command Line Arguments</title><link>http://blogs.msdn.com/howard_dierking/archive/2008/06/26/managing-command-line-arguments.aspx#8678955</link><pubDate>Wed, 02 Jul 2008 01:45:35 GMT</pubDate><guid isPermaLink="false">91d46819-8472-40ad-a661-2c78acb4018c:8678955</guid><dc:creator>Aaron Murrell</dc:creator><description>&lt;p&gt;hah! &amp;nbsp;found it... &amp;nbsp;Good stuff:&lt;/p&gt;
&lt;p&gt;&lt;a rel="nofollow" target="_new" href="http://www.objectmentor.com/resources/articles/Clean_Code_Args.pdf"&gt;http://www.objectmentor.com/resources/articles/Clean_Code_Args.pdf&lt;/a&gt;&lt;/p&gt;</description></item></channel></rss>