diff options
author | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-20 01:01:20 +0900 |
---|---|---|
committer | Tristan Riehs <tristan.riehs@bordeaux-inp.fr> | 2024-06-20 01:01:20 +0900 |
commit | 0fe90e921af56fd758d64bd123fd9c7a0ebba374 (patch) | |
tree | 8c1d556a58b24ada5188d5924a7189cd71440795 | |
parent | 5aafe9fe26debd5e354330fc4e85b7ebff22c19e (diff) |
Add interface option
Also improve the usage message.
-rw-r--r-- | src/calculer.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/calculer.c b/src/calculer.c index 72134f6..3ea19ad 100644 --- a/src/calculer.c +++ b/src/calculer.c @@ -80,7 +80,7 @@ measure_after(void *data, int correct) /* Only use in print_usage. */ #define print_opt_arg(opt, arg, desc) \ - fprintf(stream, " -"opt" "arg"\t"desc"\n"); + fprintf(stream, " -"opt" "arg"\t"desc"\n") void print_usage(FILE *stream) @@ -94,6 +94,11 @@ print_usage(FILE *stream) "Set MIN as the minimum value numbers can take.\n"); print_opt_arg("M", "MAX", "Set MAX as the maximum value numbers can take.\n"); + print_opt_arg("i", "INTERFACE={cli, tui, gui}", + "\n\t\tSelect the interface type, the default is \ +\"gui\"."); + fprintf(stream, "Consult the calculer(1) manual page for further \ +information.\n"); } void |