Open ghost opened 7 years ago
This is misconceived and unnecessary. This is a regex and not a glob and the capture groups re used to rename parts of the tree
@petermr wrote:
This is a regex and not a glob
Strictly speaking, that is true, and I have amended the wording accordingly. However, a glob would be adequate in many cases, including the invocations described at http://discuss.contentmine.org/t/extracting-data-from-tilburg-funnel-plot-diagrams/386 , and I have now illustrated that in my opening comment above.
and the capture groups re used to rename parts of the tree
In all the examples norma
invocation I have so far observed, this would be better handled as described in my opening comment.
This is misconceived and unnecessary.
Surely these benefits, stated in my opening comment, are neither misconceived, nor undesirable:
- simpler documentation - easier learning curve - reduced code complexity - easier maintenance.
Therefore re-opening, as unresolved.
This issue report is based on using this JAR.
The regex file selection functionality in
norma
adds complexity without adding value.That is because this functionality duplicates what is already offered by shells on modern operating systems, such as GNU Bash or Windows PowerShell. Such shells already feature globbing- and regular expression-based file selection.
For example:
could more naturally be expressed in Bash with a glob like:
If one's matching criteria require a regex rather than just a glob, this is also available with standard OS tools:
Removing regex CLI functionality from
norma
would provide the following benefits: