Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
caisar
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Terraform modules
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
caisar
Commits
94f49c63
Commit
94f49c63
authored
4 years ago
by
Michele Alberti
Browse files
Options
Downloads
Patches
Plain Diff
Enable detect by default for the moment.
parent
b3bb0f3c
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
main.ml
+6
-3
6 additions, 3 deletions
main.ml
with
6 additions
and
3 deletions
main.ml
+
6
−
3
View file @
94f49c63
...
...
@@ -46,6 +46,7 @@ let setup_logs =
(* Commands. *)
let
config
cmd
detect
filename
()
=
let
filename
=
Option
.
value
filename
~
default
:
Solver
.
default_config_filename
in
Logs
.
debug
(
fun
m
->
m
"Command `%s' with configuration file `%s'."
cmd
filename
);
...
...
@@ -87,7 +88,7 @@ let config_cmd =
let
doc
=
Format
.
sprintf
"$(b,FILE) to write the %s configuration to."
caisar
in
Arg
.(
value
&
pos
0
file
Solver
.
default_config_filenam
e
Arg
.(
value
&
pos
0
(
some
string
)
Non
e
&
info
[]
~
docv
:
docv_filename
~
doc
)
in
let
doc
=
Format
.
sprintf
"%s configuration."
caisar
in
...
...
@@ -104,9 +105,11 @@ let config_cmd =
in
Term
.(
ret
(
const
(
fun
cmdname
detect
filename
_
->
if
not
detect
if
not
detect
&&
Option
.
is_none
filename
then
`Help
(
`Pager
,
Some
"config"
)
else
`Ok
(
config
cmdname
detect
filename
()
))
else
(* TODO: Do not enable [detect] by default. *)
`Ok
(
config
cmdname
true
filename
()
))
$
const
cmdname
$
detect
$
filename
$
setup_logs
))
,
Term
.
info
cmdname
~
sdocs
:
Manpage
.
s_common_options
~
envs
~
exits
~
doc
~
man
...
...
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