[#absl-DisableFlagfileAndEnvParsing]
= xref:absl.adoc[absl]::DisableFlagfileAndEnvParsing
:relfileprefix: ../
:mrdocs:

Disables the processing of flags that load values from secondary sources, specifically `&hyphen;&hyphen;flagfile`, `&hyphen;&hyphen;fromenv`, and `&hyphen;&hyphen;tryfromenv`&period; When disabled, occurrences of these flags on the command line are skipped without opening files or inspecting environment variables, and a warning is printed to stderr&period; Direct command&hyphen;line flags passed via argv are still parsed normally&period;

== Synopsis

Declared in `&lt;absl&sol;flags&sol;parse&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
DisableFlagfileAndEnvParsing();
----

== Description

This is primarily intended as a security precaution for privileged or setuid processes parsing untrusted command lines prior to dropping privileges&period;

Should only be called in `main()` before calling `absl&colon;&colon;ParseCommandLine()` or `absl&colon;&colon;ParseAbseilFlagsOnly()`&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
