Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
pub
frama-c
Commits
01aed4a3
Commit
01aed4a3
authored
2 years ago
by
Andre Maroneze
Browse files
Options
Downloads
Patches
Plain Diff
[lint] fix help messages
parent
fdcc521e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/lint/lint.ml
+5
-11
5 additions, 11 deletions
tools/lint/lint.ml
with
5 additions
and
11 deletions
tools/lint/lint.ml
+
5
−
11
View file @
01aed4a3
...
...
@@ -306,19 +306,13 @@ let exec_name = Sys.argv.(0)
let
update
=
ref
false
let
verbose
=
ref
false
let
rec
argspec
=
[
"--help"
,
Arg
.
Unit
print_usage
,
"print this option list and exits"
;
"-u"
,
Arg
.
Set
update
,
"update ill-formed files (does not handle UTF8 update)"
;
"-v"
,
Arg
.
Set
verbose
,
"verbose mode"
;
let
argspec
=
[
"-u"
,
Arg
.
Set
update
,
" update ill-formed files (does not handle UTF8 update)"
;
"-v"
,
Arg
.
Set
verbose
,
" verbose mode"
;
]
and
sort
argspec
=
let
sort
argspec
=
List
.
sort
(
fun
(
name1
,
_
,
_
)
(
name2
,
_
,
_
)
->
String
.
compare
name1
name2
)
argspec
and
print_usage
()
=
Arg
.
usage
(
Arg
.
align
(
sort
argspec
))
(
Printf
.
sprintf
"Usage: %s [-u]"
exec_name
)
;
exit
0
(**************************************************************************)
(* Main *)
...
...
@@ -329,7 +323,7 @@ let () =
Arg
.
parse
(
Arg
.
align
(
sort
argspec
))
(
fun
s
->
Printf
.
eprintf
"Unknown argument: %s"
s
)
""
;
(
"Usage: git ls-files -z | git check-attr --stdin -z -a | "
^
exec_name
^
" [options]"
)
;
collect
@@
lines_from_in
stdin
;
Hashtbl
.
iter
(
check
~
verbose
:!
verbose
~
update
:!
update
)
table
;
if
not
!
res
then
exit
1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment