Skip to content

Commit

Permalink
add subpath to lint
Browse files Browse the repository at this point in the history
  • Loading branch information
rjbou committed Aug 10, 2018
1 parent ea55284 commit abbe3a1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/client/opamCommands.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2773,10 +2773,10 @@ let lint =
an opam file directly."
Arg.(some package) None
in
let lint global_options files package normalise short recurse warnings_sel =
let lint global_options files package normalise short recurse subpath warnings_sel =
apply_global_options global_options;
let opam_files_in_dir d =
match OpamPinned.files_in_source ~recurse d with
match OpamPinned.files_in_source ~recurse ?subpath d with
| [] ->
OpamConsole.warning "No opam files found in %s"
(OpamFilename.Dir.to_string d);
Expand Down Expand Up @@ -2877,7 +2877,7 @@ let lint =
if err then OpamStd.Sys.exit_because `False
in
Term.(const lint $global_options $files $package $normalise $short
$recurse $warnings),
$recurse $subpath $warnings),
term_info "lint" ~doc ~man

(* CLEAN *)
Expand Down

0 comments on commit abbe3a1

Please # to comment.