optionPrint...ionAndReturn(3)
πΈ NAME πΈ
optionPrintVersionAndReturn β Print the program version.
This little icon lives in the Programmer's Manual, bestie. π
π SYNOPSIS π
okay so you pull it in and link it like this:
#include <your-opts.h>
cc [...] -o outfile infile.c -lopts [...]
void optionPrintVersionAndReturn(tOptions * opts, tOptDesc * od);
π¦ DESCRIPTION π¦
This routine is giving βprint the version, then returnβ main character energy. It prints the version to stdout and returns instead of exiting β so no dramatic process-vanishing moment, you get control back. π
β¨
Please see the source for the print_ver function for the deets on selecting how verbose to be after this function returns. π
optsβ program options descriptor π«Άodβ the descriptor for this arg πΈ
π SEE ALSO π
The info documentation for the -lopts library. π
ao_string_tokenize(3)configFileLoad(3)optionFileLoad(3)optionFindNextValue(3)optionFindValue(3)optionFree(3)optionGetValue(3)optionLoadLine(3)optionMemberList(3)optionNextValue(3)optionOnlyUsage(3)optionPrintVersion(3)optionProcess(3)optionRestore(3)optionSaveFile(3)optionSaveState(3)optionUnloadNested(3)optionVersion(3)strequate(3)streqvcmp(3)streqvmap(3)strneqvcmp(3)strtransform(3)
okay thatβs the whole vibe: date 2018-08-26 Β· page optionPrint...ionAndReturn(3). mwah πβ¨
π¦ where this page comes from
- debian trixie: libopts25-dev 1:5.18.16-7 Β· GPL-3.0-or-later
- nixpkgs unstable: autogen 5.18.16
- ubuntu questing: libopts25-dev 1:5.18.16-7build1
- ubuntu resolute: libopts25-dev 1:5.18.16-7build2 Β· GPL-3.0-or-later
- ubuntu stonking: libopts25-dev 1:5.18.16-9 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms