Project

Profile

Help

Feature #5611

closed

Using --? on the command line lists all features unconditionally

Added by Michael Kay almost 2 years ago. Updated almost 2 years ago.

Status:
Closed
Priority:
Low
Assignee:
Category:
-
Sprint/Milestone:
-
Start date:
2022-07-20
Due date:
% Done:

0%

Estimated time:
Legacy ID:
Applies to branch:
11, trunk
Fix Committed on Branch:
trunk
Fixed in Maintenance Release:
Platforms:
.NET, Java

Description

For example if running HE it lists --streamability, which is not available in HE.

Actions #1

Updated by Michael Kay almost 2 years ago

FeatureData.featureList has the required information, it should be possible to change CommandLineOptions.featureKeys() to something like

public static String featureKeys(String edition) {
        final int index = "http://saxon.sf.net/feature/".length();
        StringBuilder sb = new StringBuilder();
        for (String name : FeatureIndex.getNames()) {
            if (FeatureIndex.getData(name).editions.contains(edition)) {
               sb.append("\n  ").append(name.substring(index));
            }
        }
        return sb.toString();
    }
Actions #2

Updated by Michael Kay almost 2 years ago

  • Tracker changed from Bug to Feature
  • Status changed from New to Closed
  • Applies to branch 11, trunk added
  • Fix Committed on Branch trunk added
  • Platforms .NET, Java added

I decided to fix this on the 12.x branch only.

Please register to edit this issue

Also available in: Atom PDF