Changeset 5158 for src/Main.hs
- Timestamp:
- 07/03/05 18:07:32 (4 years ago)
- svk:copy_cache_prev:
- 6965
- Files:
-
- 1 modified
-
src/Main.hs (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
src/Main.hs
r4972 r5158 85 85 86 86 run (("-e"):prog:args) = do doRun "-e" args prog 87 -- -E is like -e, but not accessible as a normal parameter and used only 88 -- internally: 89 -- "-e foo bar.p6" executes "foo" with @*ARGS[0] eq "bar.p6", 90 -- "-E foo bar.p6" executes "foo" and then bar.p6. 91 run (("-E"):prog:rest) = run ("-e":prog:[]) >> run rest 87 92 run ("-":args) = do doRun "-" args =<< readStdin 88 93 run (file:args) = readFile file >>= doRun file args
