Changeset 6004 for src/Pugs/Run
- Timestamp:
- 08/02/05 18:14:11 (3 years ago)
- svk:copy_cache_prev:
- 8154
- Files:
-
- 1 modified
-
src/Pugs/Run/Args.hs (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
src/Pugs/Run/Args.hs
r5267 r6004 55 55 unpackOptions [] = [] 56 56 unpackOptions (('-':[]):rest) = ["-"] ++ unpackOptions rest 57 unpackOptions ("--":opts) = opts57 unpackOptions ("--":opts) = ["--"] ++ opts 58 58 unpackOptions (('-':opt):rest) = unpackOption opt ++ unpackOptions rest 59 59 unpackOptions (filename:rest) = filename : unpackOptions rest … … 136 136 gatherArgs("-V:":item:rest) = [Opt "-V:" item] ++ gatherArgs(rest) 137 137 gatherArgs(('-':[]):xs) = [File "-"] ++ gatherArgs(xs) 138 gatherArgs(('-':x):xs) = [Switch (head x)] ++ gatherArgs(xs) 138 gatherArgs(("--"):rest) = [File x | x <- rest] 139 gatherArgs(('-':x:[]):xs) = [Switch x] ++ gatherArgs(xs) 139 140 gatherArgs(x:xs) = [File x] ++ gatherArgs(xs) 140 141
