X-Git-Url: https://git.draconx.ca/gitweb/dxcommon.git/blobdiff_plain/c3f53b697f5dd5ecd5a5f74e94ec0fd55b0f2764..f7845ef1698291a23975052a100c12bf38a0664d:/src/help.h diff --git a/src/help.h b/src/help.h index a78bc59..7dbb65d 100644 --- a/src/help.h +++ b/src/help.h @@ -1,5 +1,5 @@ /* - * Copyright © 2021 Nick Bowler + * Copyright © 2021, 2023 Nick Bowler * * Helper functions for formatting --help program output. * @@ -28,6 +28,9 @@ int help_print_optstring(const struct option *opt, const char *argname, int l); * with the context set to opt->name. The first line will be indented by * i-w spaces (to account for the cursor being in some other column), all * other lines are indented by i spaces. + * + * The output always ends with a newline, regardless of whether or not the + * input string ends with a newline. */ void help_print_desc(const struct option *opt, const char *desc, int i, int w);