| 45 |
|
|
| 46 |
] |
] |
| 47 |
|
|
| 48 |
|
let ppf = |
| 49 |
|
if !Cduce.quiet then Format.formatter_of_buffer (Buffer.create 1023) |
| 50 |
|
else Format.std_formatter |
| 51 |
|
let ppf_err = Format.err_formatter |
| 52 |
|
|
| 53 |
let specs = |
let specs = |
| 54 |
if Load_xml.expat_support then |
if Load_xml.expat_support then |
| 55 |
("--expat", Arg.Unit (fun () -> Load_xml.use_parser := `Expat), |
("--expat", Arg.Unit (fun () -> Load_xml.use_parser := `Expat), |
| 58 |
" use PXP parser") :: |
" use PXP parser") :: |
| 59 |
specs |
specs |
| 60 |
else |
else |
| 61 |
("--expat", Arg.Unit (fun () -> ()), |
("--expat", Arg.Unit (fun () -> (Format.fprintf ppf "WARNING: --expat unused option. CDuce compiled without expat support\n\n")), |
| 62 |
" option not available: CDuce was compiled without expat support") :: |
" option not available: CDuce was compiled without expat support") :: |
| 63 |
("--pxp", Arg.Unit (fun () -> ()), |
("--pxp", Arg.Unit (fun () -> (Format.fprintf ppf "WARNING: --pxp useless option. CDuce compiled without expat support\n\n")), |
| 64 |
" useless option: CDuce was compiled without expat support") :: |
" useless option: CDuce was compiled without expat support") :: |
| 65 |
specs |
specs |
| 66 |
|
|
| 69 |
Arg.parse specs (fun s -> src := s :: !src) |
Arg.parse specs (fun s -> src := s :: !src) |
| 70 |
"\nUsage:\ncduce [OPTIONS ...] [FILE ...] [--arg argument ...]\n\nOptions:" |
"\nUsage:\ncduce [OPTIONS ...] [FILE ...] [--arg argument ...]\n\nOptions:" |
| 71 |
|
|
|
let ppf = |
|
|
if !Cduce.quiet then Format.formatter_of_buffer (Buffer.create 1023) |
|
|
else Format.std_formatter |
|
|
let ppf_err = Format.err_formatter |
|
|
|
|
| 72 |
|
|
| 73 |
let bol = ref true |
let bol = ref true |
| 74 |
|
|