silently overriding the B='+tbar' "repeated" argument. I feel like we should raise a SyntaxError in this case, like what Python does for repeated kwargs. I think this would involve modifying the use_alias() decorator, but I'm not totally sure. This addresses the discussion in https://github.com/GenericMappingTools/pygmt/pull/359#discussion_r343539273. If #262 were implemented, this could be a non-issue.
(I'm not sure if this is a bug or a feature request; I chose bug.)
Description of the problem
Python doesn't allow keyword arguments to be repeated. Our current setup does allow for e.g. the following, however:
This example produces
silently overriding the
B='+tbar'
"repeated" argument. I feel like we should raise aSyntaxError
in this case, like what Python does for repeated kwargs. I think this would involve modifying theuse_alias()
decorator, but I'm not totally sure. This addresses the discussion in https://github.com/GenericMappingTools/pygmt/pull/359#discussion_r343539273. If #262 were implemented, this could be a non-issue.(I'm not sure if this is a bug or a feature request; I chose bug.)