title: Command Line Parser library giving 'System.Type' error in C#
body: <p>I'm writing a Console App (.NET Framework) in C#. I want to use arguments from the command line, and I'm trying to use the Command Line Parser library to help me do this. </p>
  
  <p>This is the package on Nuget - <a href="https://www.nuget.org/packages/CommandLineParser/" rel="nofollow noreferrer">https://www.nuget.org/packages/CommandLineParser/</a></p>
  
  <p>I found out about it from this StackOverflow question - <a href="https://stackoverflow.com/questions/491595/best-way-to-parse-command-line-arguments-in-c">Best way to parse command line arguments in C#?</a></p>
  
  <h2>MWE</h2>
  
  <pre><code>using System;
  using CommandLine;
  
  namespace CLPtest
  {
      class Program
      { 
  
          class SomeOptions
          {
              [Option('n', "name")]
              public string Name { get; set; }
  
          }
  
          static void Main(string[] args)
          {
  
              var options = new SomeOptions();
  
              CommandLine.Parser.Default.ParseArguments(args, options);
  
          }
      }
  }
  </code></pre>
  
  <p>When I try create a minimal working example, I get an error for <code>options</code> on this line:</p>
  
  <pre><code>CommandLine.Parser.Default.ParseArguments(args, options);
  </code></pre>
  
  <p>The error is <code>Argument 2: cannot convert from 'CLPtest.Program.SomeOptions' to 'System.Type'</code></p>
  
  <p>I'm really confused as I have seen this same example code on at least 3 tutorials for how to use this library. (see for example - <a href="http://dontcodetired.com/blog/post/Parsing-Command-Line-Arguments-with-Command-Line-Parser-Library" rel="nofollow noreferrer">Parsing Command Line Arguments with Command Line Parser Library</a>)</p>