File: deprecated_option.t

package info (click to toggle)
ocamlformat 0.29.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 14,820 kB
  • sloc: ml: 65,176; pascal: 4,877; lisp: 229; sh: 217; makefile: 121
file content (14 lines) | stat: -rw-r--r-- 460 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
  $ echo profile=default > .ocamlformat

  $ echo 'let x = y' > a.ml

Setting a deprecated option or a deprecated option value on the command line should display a warning message:

  $ ocamlformat a.ml --disambiguate-non-breaking-match
  let x = y

A warning is also reported if a deprecated option or a deprecated option value is set in an .ocamlformat file:

  $ echo 'disambiguate-non-breaking-match = true' > .ocamlformat
  $ ocamlformat a.ml
  let x = y