Wiki

Ticket #200 (assigned enhancement)

Opened 15 years ago

Last modified 15 years ago

Cobra compiler options read from file

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

Description

It would be convenient for large projects and setting common options once in one place if the cobra compiler would read options from a file but allow them (if duplicated) to be overridden with commandline entries.

Attachments

options-file.patch Download (32.4 KB) - added by hopscc 15 years ago.

Change History

Changed 15 years ago by hopscc

Changed 15 years ago by hopscc

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

Patch file including code changes, tests, rel note and 2 sample options file,
one for a template (.cobrarc) showing all options with description all commented out, and other providing options settings for building the compiler itself (cobra.cobrarc).

patch makes compiler by default look for first of 3 files in cwd - .cobrarc, cobra.rc and cobra.init. Options are read from first file found (option:value pairs) and merged into options record, optionfile entries are overridden by same named command line entries .
Added New commandline option (-options-file/optfile/of) allowing suppression of this behaviour ( -options-file:none) or specify an alternative filename to use rather than the default search ( -options-file:FILENAME)

Changed 15 years ago by Chuck

Bump.

Note: See TracTickets for help on using tickets.