-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added args()
function
#300
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Amazing! Would you mind adding a test for the function?
I'd be happy to. Do you mean a go test (I wasn't certain where those would go - |
In the evaluator package :) You can see similar tests here! cheers! |
Returns the number of arguments to the current script, including the script itself.
I've added the test and rebased the branch in my fork. |
I've been thinking about the semantics of the |
Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice!
This is about to be released. I've made an exception and included it as 1.8.3 though next time we add a feature it should go in the next minor release (1.9.x at this point in time). Regardless, thanks a bunch! |
It's released, have fun 😄 |
Adds a new
abs
function,args()
, that returns the number of arguments to the current script, includingthe script itself. This is useful for scripts which accept a variable number of positional arguments (for example, a list of files).