mirror of
https://github.com/RGBCube/nu_scripts
synced 2025-07-31 14:17:45 +00:00
added some comments to print3
This commit is contained in:
parent
30cc55c243
commit
b754f10ef4
1 changed files with 4 additions and 1 deletions
|
@ -41,9 +41,12 @@ def print2 [
|
|||
}
|
||||
}
|
||||
|
||||
# A print command that concatenates arguments together with an optional separator.
|
||||
# This print command will also concatenate tables like [1 2 3] as well as most other primitives
|
||||
# since the str from command has been updated with wider support.
|
||||
def print3 [
|
||||
--separator(-s):any # Optional separator (not yet flagged as optional?)
|
||||
--flat(-f) # If tables are found, flatten them
|
||||
--flat(-f) # If tables are found, flatten them
|
||||
...rest # All of the parameters
|
||||
] {
|
||||
let sep_empty = $(= $separator | empty?)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue