nu_scripts/stdlib-candidate
Antoine Stevan 71f5736d93
RFC: add a command to help parsing arguments in scripts (#875)
the other day, i was writing a script and wanted to pass a `list<int>`
to it which is not possible because there is no such things as _types_
for externals 🤔

i ended up writing an "arg parsing" command to help in that task and
thought it could be useful to people 😇

in this MR, i add `std-rfc parse-arg` in the `script-parsing.nu` module
and add associated tests which all pass.

i invite the reader to have a look at the docstring of `parse-arg` which
should contain a full example explaining the usage of this new command
😉

---------

Co-authored-by: Darren Schroeder <343840+fdncred@users.noreply.github.com>
2024-07-21 06:58:34 -05:00
..
std-rfc RFC: add a command to help parsing arguments in scripts (#875) 2024-07-21 06:58:34 -05:00
tests RFC: add a command to help parsing arguments in scripts (#875) 2024-07-21 06:58:34 -05:00
nupm.nuon Bump stdlib-candidate nupm version (#904) 2024-07-19 17:11:29 -05:00
README.md Add str append to stdlib-candidate (#626) 2023-09-30 17:13:46 -05:00

std-lib candidate

This folder is where we can add scripts that might want to be in std-lib at some point. It can serve both as a holding place for scripts that are waiting on nushell changes, as well as a place to develop and discuss such scripts.