Changeset 3207 for src/Pugs/Run

Show
Ignore:
Timestamp:
05/14/05 09:49:53 (4 years ago)
Author:
bsb
svk:copy_cache_prev:
4718
Message:

haddock for canonicalArgs

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • src/Pugs/Run/Args.hs

    r2750 r3207  
    1818-} 
    1919 
     20-- | Command line argument parser for pugs. 
    2021module Pugs.Run.Args (canonicalArgs 
    2122, gatherArgs 
     
    2627import Pugs.Internals 
    2728 
     29{- |  
     30  Convert command line arguments into canonical form for  
     31  'Pugs.Run.runWithArgs'.  The switch ordering is defined 
     32  by compareArgs and is currently: 
     33 
     34  > (-h -v -V) (-I) (-d) (-w) (-c) (-C) (--external) (-M) (-n -p) (-l -0 -e other) 
     35 
     36  Args -M, -n and -p are converted to -e scripts by joinDashE. 
     37-} 
    2838canonicalArgs :: [String] -> [String] 
    2939canonicalArgs x = concatMap procArg 
     
    6777 
    6878{- 
     79  Enforce a canonical order of command line switches.  Currently this is: 
    6980 
    70   compareArgs enforces a canonical order of command line switches. 
    71   Currently this is: 
    72  
    73     (-h -v -V) (-I) (-d) (-w) (-c) (-C) (--external) (-M) (-n -p) (-l -0 -e other) 
     81  > (-h -v -V) (-I) (-d) (-w) (-c) (-C) (--external) (-M) (-n -p) (-l -0 -e other) 
    7482 
    7583  This makes pattern matching more convenient 
    7684 
    7785  Backwards incompatible changes: 
    78     -p and -n autochomp. 
    79     -p uses say() instead of print() 
    8086 
     87   *  -p and -n autochomp. 
     88 
     89   *  -p uses say() instead of print() 
    8190-} 
    8291