Renamed Waitable to Transaction (Progression -> Waitable -> Transaction -- might it be that this concept is no crispy enough and should be revisited? I think so!); increased test coverage for lots of classes in the tracking namespace, all but 3 are now 100% covered; eliminated redundant ProgressUpdate events from the ProgressTracker and adjusted unit tests so progress update events that re-report the current progress are optional; added a new idea for a replacement of the broken (quality-wise, at least) command line parser
git-svn-id: file:///srv/devel/repo-conversion/nusu@100 d2e56fa2-650e-0410-a79f-9358c0239efd
This commit is contained in:
parent
b39f8de155
commit
8c5f2d45f7
25 changed files with 1867 additions and 1079 deletions
46
Source/Parsing/CommandLine.cs
Normal file
46
Source/Parsing/CommandLine.cs
Normal file
|
@ -0,0 +1,46 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace Nuclex.Support.Source.Parsing {
|
||||
|
||||
#if false
|
||||
/// <summary>
|
||||
/// Parses an application's command line parameters for easier consumption
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// <para>
|
||||
/// At the time of the creation of this parser, there are already several command line
|
||||
/// parsing libraries out there. Most of them, however, do way too much at once or at
|
||||
/// the very least use one huge, untested clutter of classes and methods to arrive
|
||||
/// at their results.
|
||||
/// </para>
|
||||
/// <para>
|
||||
/// This parser does nothing more than parse the command line arguments. It doesn't
|
||||
/// interpret them and it doesn't check them for validity. Due to this, it can easily
|
||||
/// be unit-tested and is an ideal building block to create actual command line
|
||||
/// interpreters that connect the parameters to program instructions and or fill
|
||||
/// structures in code.
|
||||
/// </para>
|
||||
/// </remarks>
|
||||
public class CommandLine {
|
||||
public static CommandLine Parse(string commandLine) {}
|
||||
}
|
||||
|
||||
public struct CommandLineOption {
|
||||
|
||||
/// <summary>Contains the raw string the command line argument was parsed from</summary>
|
||||
public string Raw;
|
||||
/// <summary>Method used to specify the argument (either '-', '--' or '/')</summary>
|
||||
public string Method;
|
||||
/// <summary>Name of the command line argument</summary>
|
||||
public string Name;
|
||||
/// <summary>Value that has been assigned to the command line argument</summary>
|
||||
public string Value;
|
||||
/// <summary>Method used to assign the value (either '=', ':' or ' ')</summary>
|
||||
public string Assignment;
|
||||
|
||||
}
|
||||
#endif
|
||||
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue