Sort supported args (#4156)

* sort supported args

* Update src/args.jl

* sort all supported* functions

Co-authored-by: Simon Christ <SimonChrist@gmx.de>
This commit is contained in:
Ian Butterworth 2022-03-29 11:42:23 -04:00 committed by GitHub
parent a33c0205b2
commit eb746d1641
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -1626,7 +1626,7 @@ function warn_on_unsupported_args(pkg::AbstractBackend, plotattributes)
for k in sort(collect(_to_warn))
push!(already_warned, k)
@warn(
"Keyword argument $k not supported with $pkg. Choose from: $(supported_attrs(pkg))"
"Keyword argument $k not supported with $pkg. Choose from: $(join(supported_attrs(pkg), ", "))"
)
end
end

View File

@ -285,7 +285,7 @@ for s in (:attr, :seriestype, :marker, :style, :scale)
v = Symbol("_", bend, "_", s)
@eval begin
$f(::$bend_type, $s::Symbol) = $s in $v
$f2(::$bend_type) = $v
$f2(::$bend_type) = sort(collect($v))
end
end
end