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
f665f01b
Commit
f665f01b
authored
5 years ago
by
erwan
Browse files
Options
Downloads
Patches
Plain Diff
Chore: rework the gg and gg-deco help messages
parent
6eefec00
No related branches found
No related tags found
No related merge requests found
Pipeline
#36003
passed
5 years ago
Stage: build
Stage: deploy
Changes
1
Pipelines
2
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/graphgen/graphGen_arg.ml
+11
-11
11 additions, 11 deletions
tools/graphgen/graphGen_arg.ml
with
11 additions
and
11 deletions
tools/graphgen/graphGen_arg.ml
+
11
−
11
View file @
f665f01b
...
...
@@ -191,25 +191,25 @@ let (mkoptab : string array -> t -> unit) =
|
"grid"
->
args
.
grid
.
width
<-
(
int_of_float
w
)
|
"UDG"
|
"QUDG"
->
args
.
qudg
.
width
<-
w
|
_
->
unexpected
"-w"
))
[([
"Set the grid's width
to the value (integer)
\n
"
]
,
"grid"
);
([
"Set the UDG's terrain width
to the value (float)
"
;
"10 by default.
\n
"
]
,
"UDG"
);
([
"Set the QUDG's terrain width
to the value (float)
"
;
"10 by default.
\n
"
]
,
"QUDG"
)];
[([
"Set the grid's width
\n
"
]
,
"grid"
);
([
"Set the UDG's terrain width"
;
"10 by default.
\n
"
]
,
"UDG"
);
([
"Set the QUDG's terrain width"
;
"10 by default.
\n
"
]
,
"QUDG"
)];
mkopt
args
[
"--height"
;
"-he"
]
~
arg
:
" <float>"
(
Arg
.
Float
(
fun
h
->
match
args
.
action
with
|
"grid"
->
args
.
grid
.
height
<-
(
int_of_float
h
)
|
"UDG"
|
"QUDG"
->
args
.
qudg
.
height
<-
h
|
_
->
unexpected
"-he"
))
[([
"Set the grid's height
to the value (integer)
\n
"
]
,
"grid"
);
([
"Set the UDG's terrain height
to the value (float)
"
;
"10 by default.
\n
"
]
,
"UDG"
);
([
"Set the QUDG's terrain height
to the value (float)
"
;
"10 by default.
\n
"
]
,
"QUDG"
)];
[([
"Set the grid's height
\n
"
]
,
"grid"
);
([
"Set the UDG's terrain height"
;
"10 by default.
\n
"
]
,
"UDG"
);
([
"Set the QUDG's terrain height"
;
"10 by default.
\n
"
]
,
"QUDG"
)];
mkopt
args
[
"--edge-probability"
;
"-p"
]
~
arg
:
" <float>"
(
Arg
.
Float
(
fun
p
->
match
args
.
action
with
|
"ER"
->
args
.
er
<-
p
|
_
->
unexpected
"-p"
))
[([
"Set the edge appearing probability
to the given value
."
;
[([
"Set the edge appearing probability."
;
"Must be between 0 and 1, and is set to 0.3 by default
\n
"
]
,
"ER"
)];
...
...
@@ -217,28 +217,28 @@ let (mkoptab : string array -> t -> unit) =
(
Arg
.
Int
(
fun
m
->
match
args
.
action
with
|
"BA"
->
args
.
ba
<-
m
|
_
->
unexpected
"-m"
))
[([
"Set the number of edge generated per additional node
to the given value
"
;
[([
"Set the number of edge generated per additional node"
;
"(2 by default)
\n
"
]
,
"BA"
)];
mkopt
args
[
"--radius"
;
"-r"
]
~
arg
:
" <float>"
(
Arg
.
Float
(
fun
r
->
match
args
.
action
with
|
"UDG"
->
args
.
qudg
.
radius
<-
r
|
_
->
unexpected
"-r"
))
[([
"Set the Unit Disc's radius around all nodes
to the given value
."
;
[([
"Set the Unit Disc's radius around all nodes."
;
"3 by default.
\n
"
]
,
"UDG"
)];
mkopt
args
[
"--first-radius"
;
"-r0"
]
~
arg
:
" <float>"
(
Arg
.
Float
(
fun
r
->
match
args
.
action
with
|
"QUDG"
->
args
.
qudg
.
radius
<-
r
|
_
->
unexpected
"-r0"
))
[([
"Set the first radius around all nodes
to the given value
."
;
[([
"Set the first radius around all nodes."
;
"3 by default.
\n
"
]
,
"QUDG"
)];
mkopt
args
[
"--second-radius"
;
"-r1"
]
~
arg
:
" <float>"
(
Arg
.
Float
(
fun
r
->
match
args
.
action
with
|
"QUDG"
->
args
.
qudg
.
r1
<-
r
|
_
->
unexpected
"-r1"
))
[([
"Set the second radius around all nodes
to the given value
."
;
[([
"Set the second radius around all nodes."
;
"2 by default.
\n
"
]
,
"QUDG"
)];
mkopt
args
[
"--probability"
;
"-p"
]
~
arg
:
" <float>"
...
...
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