Wiki

Ticket #89 (closed defect: fixed)

Opened 15 years ago

Last modified 15 years ago

Command line throws exception if -files: is given no argument.

Reported by: Chuck Owned by: Chuck
Priority: medium Milestone:
Component: Cobra Compiler Version: 0.8.0
Keywords: Cc:

Description

For example, if you put a space after the colon:

cobra -c -files: files-to-compile.text 

Unhandled Exception: System.ArgumentException: Invalid path
  at System.IO.Path.GetDirectoryName (System.String path) [0x00000] 
  at ArgParser._processFilesFile (IList fileNamesList, System.Collections.Generic.List`1 fileList) [0x00000] 
  at ArgParser._unpackOptions (System.Collections.Generic.Dictionary`2 valueDict, System.Collections.Generic.List`1 fileList) [0x00000] 
  at ArgParser._parseArgs (IList`1 args, .OptionValues& options, System.Collections.Generic.List`1& paths) [0x00000] 
  at ArgParser.ParseArgs (IList`1 args, .OptionValues& options, System.Collections.Generic.List`1& paths) [0x00000] 
  at CommandLine.ParseArgs (IList`1 args, .OptionValues& options, System.Collections.Generic.List`1& paths) [0x00000] 
  at CommandLine.Run (System.Collections.Generic.List`1 args) [0x00000] 
  at CommandLine.Run () [0x00000] 
  at CobraMain.Main () [0x00000] 

 Reported by arisawa

Attachments

ticket89-files-arg.patch Download (1.8 KB) - added by hopscc 15 years ago.

Change History

Changed 15 years ago by hopscc

Changed 15 years ago by hopscc

  • owner set to Chuck
  • status changed from new to assigned

patch for this and also malformed entries in files file.
Added Testfile for these and missing filesFile.

Changed 15 years ago by Chuck

  • status changed from assigned to closed
  • resolution set to fixed

Patch applied in changeset:2028
Thanks.

Note: See TracTickets for help on using tickets.