FEATURE-CHECK(1)
π FEATURE-CHECK(1) π
okay bestie, welcome to the General Commands Manual entry for feature-check β yes it's a real one, yes it's giving main character energy, and yes we're gonna get through the whole thing together π
β¨ NAME β¨
feature-check β query a program for supported features π¦
β¨ SYNOPSIS β¨
feature-check [-v] [-O optname] [-P prefix] program feature-name
feature-check [-O optname] [-P prefix] program feature-name op version
feature-check [-O optname] [-o json|tsv] [-P prefix] -l program
feature-check -V | -h
feature-check --features
likeβ¦ five whole ways to use her. she's versatile, she's booked, she's that girl π
β¨ DESCRIPTION β¨
so the feature-check tool goes and gets the list of supported features from a program using various methods (for example: running it with the --features command-line option π«Ά), and then it lets other programs check whether a specific feature is there and, possibly, what version it's at. it's basically a vibe check but for features, no cap.
Options: (yes, here comes the list, sit down, hydrate πΈ)
--featuresβ list the compile-time features that this version offeature-checksupports. here's the whole squad:feature-checkβ always present, and it comes with the version of thefeature-checktool. iconic, always shows up.listβ present if thefeature-checktool supports fetching the list of features supported by a program.simpleβ present if thefeature-checktool supports comparing the version of a single feature against a specified version string.singleβ present if thefeature-checktool supports querying a single feature.
-h,--helpβ display program usage output and exit. (the "bestie what do i type" button π)-O optnameβ specify the option to pass to the program to obtain its list of features (default--features).-o formatβ specify the output format for the full list of features with the-loption. formats arejsonortsv.-P prefixβ specify the prefix thatfeature-checkshould look for in the program's output to find the line that contains the list of features; default is"Features: ".-V,--versionβ display program version output and exit.-vβ when querying a single feature, output the version obtained for it. (she's nosy and we love that π₯)
β¨ EXIT STATUS β¨
okay this part actually matters, listen up π
- when querying a single feature,
feature-checkexits with code0if the program supports that feature, and with a non-zero code when either the program could not be executed, or its list of features could not be parsed, or the feature was not present. - when examining the version of a single feature,
feature-checkexits with code0if the comparison result is true, and with a non-zero code when either the program could not be executed, or its list of features could not be parsed, or the comparison failed. - when listing the features supported by a program,
feature-checkexits with code0when the list of features was obtained and output, and with a non-zero code when either the program could not be executed or its list of features could not be parsed.
zero means slay, non-zero means the vibe check failed. that's it, that's the whole rule π
β¨ EXAMPLES β¨
these are shown exactly as you'd give them to the shell, fr fr:
feature-check curl AsynchDNS
exit with code 0 if the curl(1) tool is present and it supports asynchronous DNS lookups. π
feature-check -l confget
list the features supported by the confget(1) tool. π
feature-check timelimit 'timelimit ge 1.9'
exit with code 0 if the timelimit(1) tool advertises its timelimit feature at version 1.9 or later. β
feature-check timelimit timelimit ge 1.9
the same check; note that the feature-check tool will treat all the arguments after the program name as a single expression, i.e. it will concatenate them into a single string separated by spaces and then interpret the string. so likeβ¦ quoting is a vibe, not a requirement π
β¨ STANDARDS β¨
no standards documentation was harmed in the process of creating feature-check. π§ (respectfully, we simply did not touch it)
β¨ BUGS β¨
please report any bugs in feature-check to the author. π they want to know, i promise.
β¨ AUTHOR β¨
the feature-check utility was written by Peter Pentchev <roam@ringlet.net> in 2018. an absolute legend, no notes π
and that's the whole page, bestie!! this one shipped from Debian on April 21, 2018 β mwah, obsessed, go check some features πβ¨π
π¦ where this page comes from
- debian trixie: feature-check 2.2.0-2 Β· BSD-2-Clause
- ubuntu questing: feature-check 2.2.0-2
- ubuntu resolute: feature-check 2.2.0-2build1 Β· BSD-2-Clause
- ubuntu stonking: feature-check 2.3.2-1 Β· BSD-2-Clause
- π the page's license: BSD-2-Clause
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms