Skip to content

Commit

Permalink
CHANGE: enhance map values help text for clarity
Browse files Browse the repository at this point in the history
  • Loading branch information
Oldes committed Nov 11, 2024
1 parent f784d22 commit df369a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/mezz/mezz-help.reb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ import (module [

dump-obj: func [
"Returns a string with information about an object value"
obj [any-object!]
obj [any-object! map!]
/weak "Provides sorting and does not displays unset values"
/match "Include only those that match a string or datatype"
pattern
Expand Down Expand Up @@ -170,7 +170,7 @@ import (module [
]
][ continue ]

str: join "^[[1;32m" form-pad word 15
str: join "^[[1;32m" form-pad either map? :obj [mold/flat :word][word] 15
append str "^[[m "
append str form-pad type 11 - min 0 ((length? str) - 15)
append result rejoin [
Expand Down Expand Up @@ -410,7 +410,7 @@ import (module [
word: uppercase mold word
type: form-type :value
output ajoin ["^[[1;32m" word "^[[m is " type " of value: ^[[32m"]
output either any [any-object? value] [
output either any [any-object? value map? value] [
output lf dump-obj :value
][
max-desc-width: cols - (length? word) - (length? type) - 21
Expand Down

0 comments on commit df369a5

Please sign in to comment.