Skip to content

Commit 0cc313e

Browse files
committed
fix(REPL/show): don't repeat description as a parm
1 parent 5fa3cf5 commit 0cc313e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

REPL/ext/REPLMode/show.jl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,12 @@ function repl_show(input::AbstractString)
3131
if dataset isa DataSet
3232
print(" UUID: ")
3333
printstyled(dataset.uuid, '\n', color=:light_magenta)
34-
if !isempty(dataset.parameters)
34+
if !isempty(dataset.parameters) && !(length(dataset.parameters) == 1 && first(keys(dataset.parameters)) == "description")
3535
println(" Parameters:")
3636
pkeys = collect(keys(dataset.parameters))
3737
pkeypad = maximum(textwidth, pkeys)
3838
for key in sort(pkeys, by=natkeygen)
39+
key == "description" && continue
3940
print(" ", lpad(key, pkeypad), ' ')
4041
printstyled(dataset.parameters[key], '\n', color=:light_cyan)
4142
end

0 commit comments

Comments
 (0)