Update of /cvsroot/adapdev/Adapdev/src/Adapdev
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13773/src/Adapdev
Modified Files:
CommandLineParser.cs CommandLineSwitchRecord.cs
Log Message:
Fixed issue w/ quotes not being recognized for command line args
Modified text output format for Zanebug
Index: CommandLineParser.cs
===================================================================
RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev/CommandLineParser.cs,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** CommandLineParser.cs 28 Feb 2005 01:31:36 -0000 1.1.1.1
--- CommandLineParser.cs 24 Apr 2005 04:59:09 -0000 1.2
***************
*** 81,85 ****
private void ExtractApplicationName()
{
! Regex r = new Regex(@"^(?<commandLine>("".+""|(\S)+))(?<remainder>.+)",
RegexOptions.ExplicitCapture);
Match m = r.Match(_commandLine);
--- 81,85 ----
private void ExtractApplicationName()
{
! Regex r = new Regex(@"^(?<commandLine>(""[^\""]+""|(\S)+))(?<remainder>.+)",
RegexOptions.ExplicitCapture);
Match m = r.Match(_commandLine);
Index: CommandLineSwitchRecord.cs
===================================================================
RCS file: /cvsroot/adapdev/Adapdev/src/Adapdev/CommandLineSwitchRecord.cs,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** CommandLineSwitchRecord.cs 28 Feb 2005 01:31:37 -0000 1.1.1.1
--- CommandLineSwitchRecord.cs 24 Apr 2005 04:59:09 -0000 1.2
***************
*** 170,174 ****
strPatternEnd = @")(?<value>(\+|-){0,1}))";
else if ( Type == typeof(string) )
! strPatternEnd = @")(?::|\s+))((?:"")(?<value>.+)(?:"")|(?<value>\S+))";
else if ( Type == typeof(int) )
strPatternEnd = @")(?::|\s+))((?<value>(-|\+)[0-9]+)|(?<value>[0-9]+))";
--- 170,174 ----
strPatternEnd = @")(?<value>(\+|-){0,1}))";
else if ( Type == typeof(string) )
! strPatternEnd = @")(?::|\s+))((?:"")(?<value>[^\""]+)(?:"")|(?<value>\S+))";
else if ( Type == typeof(int) )
strPatternEnd = @")(?::|\s+))((?<value>(-|\+)[0-9]+)|(?<value>[0-9]+))";
|