Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Command line updates: Allow rules to be specified multiple times. #85

Closed
tbitonti opened this issue Jul 13, 2020 · 0 comments · Fixed by #89
Closed

Command line updates: Allow rules to be specified multiple times. #85

tbitonti opened this issue Jul 13, 2020 · 0 comments · Fixed by #89
Assignees
Labels
enhancement New feature or request

Comments

@tbitonti
Copy link
Contributor

Split from issue #24: Allow rules options to be specified multiple times.

The capability is coded for all rules options cases.

Rules options are loaded and merged in the order in which they are specified to the command line, with the more recently specified rules data overwriting the earlier specified rules data.

For example, text updates might specify several master rules files (tier0, tier1, and tier2), with partial overlaps of tier2 and tier1 onto tier0:

// Initial:
// The quick brown fox jumps over the lazy dog.
// text[x].ext[y] (x==0..7, y=0..7)
//
// tier0.master.properties:
// *.ext0=ext0.properties
// quick=slow
// lazy=happy
// The slow brown fox jumps over the happy dog.
// *.ext1=ext1.properties
// quick=fast
// brown=blue
// -- Not active
// *.ext2=ext2.properties
// fox=hen
// over=under
// -- Not active
// tier1.master.properties:
// *.ext1=ext11.properties
// quick=lethargic
// lazy=energetic
// The lethargic brown fox jumps over the energetic dog.
// *.ext4=ext4.properties
// jumps=walks
// dog=meadow
// The quick brown fox walks over the lazy meadow.";
// tier2.master.properties:
// *.ext2=ext22.properties
// fox=elephant
// over=beside
// The quick brown elephant jumps beside the lazy dog.";
// *.ext5=ext5.properties
// jumps=strolls
// over=behind
// The quick brown fox strolls behind the lazy dog.

@tbitonti tbitonti self-assigned this Jul 13, 2020
@tbitonti tbitonti added the enhancement New feature or request label Jul 13, 2020
@bjhargrave bjhargrave linked a pull request Jul 27, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant