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

Add --exclude-script to respec2html #541

Merged
merged 2 commits into from Dec 19, 2015

Conversation

dontcallmedom
Copy link
Member

close #538

@@ -30,6 +31,13 @@ if (args.indexOf("-w") !== -1) {
reportWarnings = true;
}

if (args.indexOf("--exclude-script") !== -1) {
var idx = args.indexOf("--exclude-script");
var values = args.splice(idx, 2);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you certain you want "splice" here (instead of slice)? Splice modifies the args array, which is not great IMO (i.e., we should keep inputs immutable).

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've re-used here the approach taken in the two previous argument parsing blocks.

@marcoscaceres
Copy link
Member

LGTM

@plehegar
Copy link
Member

Doesn't this only permit one exclusion instead of a list of exclusions?

@dontcallmedom
Copy link
Member Author

it filters any scripts whose source starts with the url passed in parameter; I could support several of those, but that doesn't seem required yet

@plehegar
Copy link
Member

👍

plehegar added a commit that referenced this pull request Dec 19, 2015
Add --exclude-script to respec2html
@plehegar plehegar merged commit 314fc01 into w3c:develop Dec 19, 2015
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this pull request Feb 19, 2018
shikhar-scs pushed a commit to shikhar-scs/respec that referenced this pull request Feb 19, 2018
…rtain elements should exist on a graph, such as the plot bounds
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants