Skip to content

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

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

Merged
merged 6 commits into from
Jul 6, 2021

Conversation

PaulWessel
Copy link
Member

@PaulWessel PaulWessel commented Jul 6, 2021

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
Copy link
Member

@joa-quim joa-quim left a comment

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.

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