danielgtaylor / nesh

An enhanced, extensible interactive shell for Node.js and CoffeeScript
http://danielgtaylor.github.io/nesh/
MIT License
288 stars 27 forks source link

Support multiple --eval arguments #26

Closed jawj closed 8 years ago

jawj commented 10 years ago

This setup seems common in other tools that take an -e argument. I came across a use for this when doing this:

nesh -c --eval "process.env.DATABASE_URL = '$DBURL'" --eval index.coffee

Edit: Thinking about this some more, my example totally and utterly misses the point of environment variables! But I still think it's a useful capability to be able to --eval several scripts.