4 ms·
This is just fantastic. How do you invoke arbitrary programs with option arguments? I saw you can use dir["file.txt"].vi, what if i want to run <someprog> <s
by ashu 19y ago
This is just fantastic. How do you invoke arbitrary programs with option arguments? I saw you can use dir["file.txt"].vi, what if i want to run
<someprog> <someoptions> <somefile>
?
- pygy 19y agoIt's not possible at the moment. You can pass options to vi/textmate by passing a string to the respective method as an argument. A generalisation should be possible by resolving the PATH and adding the various executables as methods to the appropriate classes. The metaprogramming abilities of Ruby should make this a breeze.