Noogλe
search input
Function of the day
Create an
"--{with-<feature>=<value>,without-<feature>}"string that can be passed to standard GNU Autoconf scripts.Inputs
flag- 1. Function argument
feature- 2. Function argument
value- 3. Function argument
Type
withFeatureAs :: Bool -> String -> String -> StringExamples
lib.strings.withFeatureAsusage examplewithFeatureAs true "shared" "foo" => "--with-shared=foo" withFeatureAs false "shared" (throw "ignored") => "--without-shared"