<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Intrepid Blog &#187; command line</title>
	<atom:link href="http://blog.affien.com/archives/tag/command-line/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.affien.com</link>
	<description>A few thoughts</description>
	<lastBuildDate>Mon, 23 Jan 2012 08:47:37 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Command line parser update</title>
		<link>http://blog.affien.com/archives/2005/02/27/command-line-parser-update/</link>
		<comments>http://blog.affien.com/archives/2005/02/27/command-line-parser-update/#comments</comments>
		<pubDate>Sun, 27 Feb 2005 10:45:24 +0000</pubDate>
		<dc:creator>Bas Westerbaan</dc:creator>
				<category><![CDATA[Computer Science]]></category>
		<category><![CDATA[.net]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[parser]]></category>

		<guid isPermaLink="false">http://blog.w-nz.com/archives/2005/02/27/command-line-parser-update/</guid>
		<description><![CDATA[I made some updates on my command line parser for .net  [...]]]></description>
			<content:encoded><![CDATA[<p>I made some updates on <a href="http://blog.w-nz.com/archives/2005/02/26/command-line-parser-for-net/">my command line parser for .net</a> .</p>
<p>It now supports aliases and you can set whether the parameter should accept a value or not so you can use <code>-foo bar</code> where <code>foo</code> doesn&#8217;t accept a value and therefore <code>bar</code> is regognized as a position dependand parameter.</p>
<p>An example parameter definition:</p>
<blockquote><pre style="font-size: 12px">[Parameter(Position = 0, IsMandatory = true,
AcceptsNoValue = false, Name = "folder",
Description = "The folder",
Aliases = new string[]{"target"})]
public string FolderParameter
{
    get { return _FolderParameter; }
    set { _FolderParameter = value; }
}</pre>
</blockquote>
<p>(Ignore the slashes placed before the quotes, wordpress seems to add them automaticly) I also have added the <code>Intrepid.Automation.CommandLine.OutputHelp</code> function, which outputs <em>help</em> for the parameters of an object to a stream. Like this:</p>
<blockquote><p>SUMMARY<br />
Creates playlists in a folder and its subfolders</p>
<p>PARAMETERS<br />
-target </p>
<p>[String excludefilter = NULL] (efilter)<br />
Only files not matching this regex are included</p>
<p>[String includefilter = NULL] (ifilter)<br />
Only files matching this regex are included</p>
<p>String folder (target)<br />
The folder</p>
<p>[Boolean expand]<br />
Whether to expand referenced m3u&#8217;s</p>
<p>REMARKS<br />
m3u playlists are automaticly excluded; use -excludefilter to add additional excludes.</p></blockquote>
<p>You can still download the Intrepid.Clorelib assembly <a href="http://w-nz.com/update/Intrepid.Corelib.zip">here</a> and you still may only use it for non-commercial open-source usage and may not change/reverse engineer/etc it in any way.</p>
<p>Hope it will prove usefull <img src='http://blog.affien.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> .</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.affien.com/archives/2005/02/27/command-line-parser-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

