Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
why3
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
119
Issues
119
List
Boards
Labels
Service Desk
Milestones
Merge Requests
16
Merge Requests
16
Operations
Operations
Incidents
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Why3
why3
Commits
5b6a5d37
Commit
5b6a5d37
authored
Dec 02, 2010
by
François Bobot
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add the option dont-save
parent
4a41fcab
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
src/config/whyconfig.ml
src/config/whyconfig.ml
+7
-2
No files found.
src/config/whyconfig.ml
View file @
5b6a5d37
...
...
@@ -33,6 +33,8 @@ let conf_file = ref None
let
autoprovers
=
ref
false
let
autoplugins
=
ref
false
let
save
=
ref
true
let
set_oref
r
=
(
fun
s
->
r
:=
Some
s
)
let
plugins
=
Queue
.
create
()
...
...
@@ -53,6 +55,8 @@ let option_list = Arg.align [
" autodetect the plugins in the default library directories"
;
"--install-plugin"
,
Arg
.
String
add_plugin
,
"install a plugin to the actual libdir"
;
"--dont-save"
,
Arg
.
Clear
save
,
"dont modify the config file"
]
let
anon_file
_
=
Arg
.
usage
option_list
usage_msg
;
exit
1
...
...
@@ -118,5 +122,6 @@ let () =
if
!
autoplugins
||
conf_file_doesnt_exist
then
plugins_auto_detection
config
else
config
in
printf
"Save config to %s@."
conf_file
;
save_config
config
if
!
save
then
begin
printf
"Save config to %s@."
conf_file
;
save_config
config
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment