@@ -151,14 +151,15 @@ let main =
151
151
When the contents of the file is read from stdin, or if the file given does not \
152
152
permit to recognize the linted file kind solely from its path, the name of the \
153
153
file may be overridden." )
154
- (let % map_open.Command () = Log_cli. set_config ()
155
- and file =
154
+ (let open Command.Std in
155
+ let + () = Log_cli. set_config ()
156
+ and + file =
156
157
Arg. pos_opt
157
158
~pos: 0
158
159
(Param. validated_string (module Fpath ))
159
160
~docv: " FILE"
160
161
~doc: " Path to file to lint (by default reads from stdin)."
161
- and filename =
162
+ and + filename =
162
163
Arg. named_opt
163
164
[ " filename" ]
164
165
(Param. validated_string (module Fpath ))
@@ -168,23 +169,23 @@ let main =
168
169
derive the linted file kind from its basename, but that path is not used to \
169
170
load contents from disk. This may be used to override an actual file name or \
170
171
to name the input when it comes from $(b,stdin)."
171
- and in_place =
172
+ and + in_place =
172
173
Arg. flag
173
174
[ in_place_switch ]
174
175
~doc:
175
176
" When the input is a regular file, you may use this option to save the linted \
176
177
result in the file directly, instead of printing it to $(b,stdout). \
177
178
Supplying this flag results in failure when the input is read from \
178
179
$(b,stdin)."
179
- and config =
180
+ and + config =
180
181
Arg. named_opt [ " config" ] Param. file ~doc: " Path to dunolint config file."
181
- and format_file =
182
+ and + format_file =
182
183
Arg. named_with_default
183
184
[ " format-file" ]
184
185
Param. bool
185
186
~default: true
186
187
~doc: " Format file with after linting, using [dune format-dune-file]."
187
- and enforce =
188
+ and + enforce =
188
189
Arg. named_multi
189
190
[ " enforce" ]
190
191
(Common_helpers. sexpable_param (module Dunolint. Condition ))
0 commit comments