Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sasa
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
verimag
synchrone
sasa
Commits
66a23e9e
Commit
66a23e9e
authored
6 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
Update: refactor -h outputs
parent
3209cf68
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
bin/sasArg.ml
+10
-10
10 additions, 10 deletions
bin/sasArg.ml
with
10 additions
and
10 deletions
bin/sasArg.ml
+
10
−
10
View file @
66a23e9e
(* Time-stamp: <modified the 14/03/2019 (at 1
3:36
) by Erwan Jahier> *)
(* Time-stamp: <modified the 14/03/2019 (at 1
6:15
) by Erwan Jahier> *)
type
t
=
{
type
t
=
{
...
@@ -18,8 +18,8 @@ type t = {
...
@@ -18,8 +18,8 @@ type t = {
mutable
_margin
:
int
;
mutable
_margin
:
int
;
}
}
let
usage_msg
=
(
"usage: "
^
Sys
.
argv
.
(
0
)
^
" [<option>]
[
<topology>.dot
file]
let
usage_msg
=
(
"usage: "
^
Sys
.
argv
.
(
0
)
^
" [<option>]
*
<topology>.dot
use -
-help
to see the available options.
use -
h
to see the available options.
"
)
"
)
let
print_usage
()
=
Printf
.
printf
"%s
\n
"
usage_msg
;
flush
stdout
let
print_usage
()
=
Printf
.
printf
"%s
\n
"
usage_msg
;
flush
stdout
...
@@ -91,29 +91,29 @@ let (mkoptab : t -> unit) =
...
@@ -91,29 +91,29 @@ let (mkoptab : t -> unit) =
mkopt
opt
[
"--central-demon"
;
"-cd"
]
mkopt
opt
[
"--central-demon"
;
"-cd"
]
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
Central
))
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
Central
))
[
"Use a Central deamon (selects exactly one action)"
];
[
"Use a Central deamon (
which
selects exactly one action)"
];
mkopt
opt
[
"--locally-central-demon"
;
"-lcd"
]
mkopt
opt
[
"--locally-central-demon"
;
"-lcd"
]
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
LocallyCentral
))
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
LocallyCentral
))
[
"Use a Locally Central deamon (never activates two neighbor"
;
[
"Use a Locally Central deamon (
which
never activates two neighbor
s
"
;
"actions in the same step)"
];
"actions in the same step)"
];
mkopt
opt
[
"--distributed-demon"
;
"-dd"
]
mkopt
opt
[
"--distributed-demon"
;
"-dd"
]
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
Distributed
))
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
Distributed
))
[
"Use a Distributed deamon (select at least one action)"
];
[
"Use a Distributed deamon (
which
select at least one action)"
];
mkopt
opt
[
"--custom-demon"
;
"-custd"
]
mkopt
opt
[
"--custom-demon"
;
"-custd"
]
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
Custom
))
(
Arg
.
Unit
(
fun
()
->
args
.
demon
<-
Demon
.
Custom
;
args
.
rif
<-
true
))
[
"Use a Custom deamon"
];
[
"Use a Custom deamon
(forces --rif)
"
];
mkopt
opt
[
"--rif"
;
"-rif"
]
mkopt
opt
[
"--rif"
;
"-rif"
]
(
Arg
.
Unit
(
fun
()
->
args
.
rif
<-
true
))
(
Arg
.
Unit
(
fun
()
->
args
.
rif
<-
true
))
[
"Follows RIF conventions"
];
[
"Follows RIF conventions"
];
mkopt
opt
[
"--gen-lutin-demon"
;
"-gld"
]
mkopt
opt
~
hide
:
true
[
"--gen-lutin-demon"
;
"-gld"
]
(
Arg
.
Unit
(
fun
()
->
args
.
gen_lutin
<-
true
))
(
Arg
.
Unit
(
fun
()
->
args
.
gen_lutin
<-
true
))
[
"Generate Lutin demons and exit"
];
[
"Generate Lutin demons and exit"
];
mkopt
opt
[
"--ignore-first-inputs"
;
"-ifi"
]
mkopt
opt
~
hide
:
true
[
"--ignore-first-inputs"
;
"-ifi"
]
(
Arg
.
Unit
(
fun
()
->
args
.
ifi
<-
true
))
(
Arg
.
Unit
(
fun
()
->
args
.
ifi
<-
true
))
[
"Ignore first inputs (necessary to use luciole via lurette/rdbg/luciole-rif)"
];
[
"Ignore first inputs (necessary to use luciole via lurette/rdbg/luciole-rif)"
];
...
...
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