Skip to content

Sort -B options under the hood to ensure proper order for parsing - #5441

Merged
PaulWessel merged 6 commits into
masterfrom
B-sorting
Jul 6, 2021
Merged

PaulWessel merged 6 commits into
masterfrom
B-sorting

Conversation

@PaulWessel

@PaulWessel PaulWessel commented Jul 6, 2021 •

Copy link
Copy Markdown
Contributor

Description of proposed changes

The parsing of -B works with fewest complications if the intervals are parsed first, then axes settings, then the frame settings. However, the user should not have to worry about this. This PR checks the -B options and if there are more than one and the order is not the preferred one we sort the options to place -B in the correct order at the end.

With this PR issues such as #5344 works. I am also fixing a few scripts to use the proper syntax. Closing #5344.

This is also potentially useful for GMT.jl where the order of the -B options generated would no longer need to be handled on the Julia side, @joa-quim.

@PaulWessel PaulWessel self-assigned this Jul 6, 2021

@joa-quim joa-quim left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Yes, handy but lots of pain already invested on this.

This branch was previously deployed

1 inactive deployment
Preview — 0802f412 Deployed Jul 6, 2021 by vercel[bot]
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.

2 participants