Introduction
Introduction Statistics Contact Development Disclaimer Help
tgranularpacking: fix help text for diameter options - granular - granular dyna…
git clone git://src.adamsgaard.dk/granular
Log
Files
Refs
README
LICENSE
---
commit 39fd8dcf8a449c4d6b3c828267e3cd413b2648e6
parent 40c0ea35478dfb9751ec376e907ab09659afbfe1
Author: Anders Damsgaard <[email protected]>
Date: Thu, 25 Mar 2021 20:27:22 +0100
granularpacking: fix help text for diameter options
Diffstat:
M granularpacking.1 | 12 ++++++------
M granularpacking.c | 11 ++++++-----
2 files changed, 12 insertions(+), 11 deletions(-)
---
diff --git a/granularpacking.1 b/granularpacking.1
t@@ -8,8 +8,8 @@
.Nm
.Op Fl h
.Op Fl t
-.Op Fl D Ar max-radius
-.Op Fl d Ar min-radius
+.Op Fl D Ar max-diameter
+.Op Fl d Ar min-diameter
.Op Fl X Ar x-offset
.Op Fl x Ar nx
.Op Fl Y Ar y-offset
t@@ -26,10 +26,10 @@ format.
.Pp
The options are as wollows:
.Bl -tag -width Ds
-.It Fl D Ar max-radius
-Specify maximum diameter of generated grains (default 1.0).
-.It Fl d Ar min-radius
-Specify minimum diameter of generated grains (default 1.0).
+.It Fl D Ar max-diameter
+Specify maximum size of generated grains (default 1.0).
+.It Fl d Ar min-diameter
+Specify minimum size of generated grains (default 1.0).
.It Fl h
Show help text.
.It Fl t
diff --git a/granularpacking.c b/granularpacking.c
t@@ -14,8 +14,9 @@ static void
usage(void)
{
errx(1, "usage: %s [-ht] "
- "[-R max-radius] "
- "[-r min-radius] "
+ "[-D max-diameter] "
+ "[-d min-diameter] "
+ "[-p padding-factor] "
"[-X x-offset] "
"[-x nx] "
"[-Y y-offset] "
t@@ -38,12 +39,12 @@ main(int argc, char *argv[])
case 'h':
usage();
break;
- case 't':
- packing = 1;
- break;
case 'p':
padding = atof(EARGF(usage()));
break;
+ case 't':
+ packing = 1;
+ break;
case 'R':
r_max = atof(EARGF(usage()));
break;
You are viewing proxied material from mx1.adamsgaard.dk. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.