Skip to content

Commit

Permalink
Correct incomplete handling of arguments in dpkg
Browse files Browse the repository at this point in the history
  • Loading branch information
benozol committed Feb 27, 2020
1 parent acb30bf commit b2175ee
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/symbolic/utilities/dpkg.ml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ let interprete ctx =

| "-L" :: _ ->
error ~utility "option -L expects exactly one argument"
| ["--compare-versions"; _v1; _v2] ->
| ["--compare-versions"; _v1; _op; _v2] ->
incomplete ~utility "support for --compare-versions not yet implemented"
| "--compare-versions" :: _ ->
error ~utility "option --compare-versions expects exactly two arguments"
error ~utility "option --compare-versions expects exactly three arguments"
| [] ->
(* TODO: return error state *)
error ~utility "no argument found"
Expand Down

0 comments on commit b2175ee

Please sign in to comment.