[#ArgsManager-GetPathArg] = xref:ArgsManager.adoc[ArgsManager]::GetPathArg :relfileprefix: ../ :mrdocs: Return path argument or default value == Synopsis Declared in `<common/args.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7f2e381ad4a8)]] xref:fs/path.adoc[fs::path] GetPathArg( std::string arg, xref:fs/path.adoc[fs::path] const& default_value = {}) const; ---- == Return Value normalized path if argument is set, with redundant "." and ".." path components and trailing separators removed (see patharg unit test for examples or implementation for details). If argument is empty or not set, default_value is returned unchanged. == Parameters [cols="1,4"] |=== | Name| Description | *arg* | Argument to get a path from (e.g., "‐datadir", "‐blocksdir" or "‐walletdir") | *default_value* | Optional default value to return instead of the empty path. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#