$ min demo.min
("demo.min")
$ min demo.min hello
(x) Cannot read from file: hello
We can pass stuff to our scripts using opts, and currently there's no overlap with min's options - either it terminates before running the script, like --help, or ignores the option and passes it to the script, like min -i demo.min. I imagine when there are more switches in the future the overlap will be awkward. Script options and interpreter options should be separate, based on positioning. Scripts should be able to have their own --help.
Min tries to parse all args as filenames.
For a file like:
We get following results:
We can pass stuff to our scripts using
opts
, and currently there's no overlap with min's options - either it terminates before running the script, like--help
, or ignores the option and passes it to the script, likemin -i demo.min
. I imagine when there are more switches in the future the overlap will be awkward. Script options and interpreter options should be separate, based on positioning. Scripts should be able to have their own --help.