aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Tim Segers <tsegers@pm.me>2022-10-11 18:08:18 +0200
committerGravatar Tim Segers <tsegers@pm.me>2022-10-11 18:13:15 +0200
commite2a4e48252ef051f99da0f2e7a0c1fa0ee00c5ea (patch)
tree9deac67f6031cef232205fca1b9eb778fb92e407 /src
parent70ea0d58f937c4493bdcbacd59d4f7bf18792352 (diff)
downloadopendeco-0.3.tar.gz
Add section headers to --help outputv0.3
Diffstat (limited to 'src')
-rw-r--r--src/opendeco.c19
1 files changed, 11 insertions, 8 deletions
diff --git a/src/opendeco.c b/src/opendeco.c
index 8a1287b..26eea7e 100644
--- a/src/opendeco.c
+++ b/src/opendeco.c
@@ -21,21 +21,24 @@
static char args_doc[] = "";
static char doc[] = "Implementation of Buhlmann ZH-L16 with Gradient Factors:"
"\vExamples:\n\n"
- "\t./opendeco -d 18 -t 60 -g Air\n"
- "\t./opendeco -d 30 -t 60 -g EAN32\n"
- "\t./opendeco -d 40 -t 120 -g 21/35 -l 20 -h 80 --decogasses Oxygen,EAN50\n";
+ " ./opendeco -d 18 -t 60 -g Air\n"
+ " ./opendeco -d 30 -t 60 -g EAN32\n"
+ " ./opendeco -d 40 -t 120 -g 21/35 -l 20 -h 80 --decogasses Oxygen,EAN50\n";
const char *argp_program_bug_address = "<~tsegers/opendeco@lists.sr.ht> or https://todo.sr.ht/~tsegers/opendeco";
const char *argp_program_version = "opendeco " VERSION;
static struct argp_option options[] = {
+ {0, 0, 0, 0, "Dive options:", 0},
{"depth", 'd', "NUMBER", 0, "Set the depth of the dive in meters", 0},
{"time", 't', "NUMBER", 0, "Set the time of the dive in minutes", 1},
{"gas", 'g', "STRING", 0, "Set the bottom gas used during the dive, defaults to Air", 2},
- {"pressure", 'p', "STRING", 0, "Set the surface air pressure, defaults to 1.01325bar or 1atm", 3},
- {0, 's', 0, OPTION_ARG_OPTIONAL, "Only switch gas at deco stops", 4},
- {"gflow", 'l', "NUMBER", 0, "Set the gradient factor at the first stop, defaults to 30", 5},
- {"gfhigh", 'h', "NUMBER", 0, "Set the gradient factor at the surface, defaults to 75", 6},
- {"decogasses", 'G', "LIST", 0, "Set the gasses available for deco", 7},
+ {"pressure", 'p', "NUMBER", 0, "Set the surface air pressure, defaults to 1.01325bar or 1atm", 3},
+ {0, 0, 0, 0, "Deco options:", 0},
+ {"gflow", 'l', "NUMBER", 0, "Set the gradient factor at the first stop, defaults to 30", 4},
+ {"gfhigh", 'h', "NUMBER", 0, "Set the gradient factor at the surface, defaults to 75", 5},
+ {"decogasses", 'G', "LIST", 0, "Set the gasses available for deco", 6},
+ {0, 's', 0, OPTION_ARG_OPTIONAL, "Only switch gas at deco stops", 7},
+ {0, 0, 0, 0, "Informational options:", 0},
{0, 0, 0, 0, 0, 0}
};