[#node-ReadMiningArgs]
= xref:node.adoc[node]::ReadMiningArgs
:relfileprefix: ../
:mrdocs:

Read the mining options set in `args&period;` Returns an error if one was encountered&period;

== Synopsis

Declared in `&lt;node&sol;mining&lowbar;args&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
&lsqb;&lsqb;nodiscard&rsqb;&rsqb;
xref:util/Result.adoc[util::Result&lt;BlockCreateOptions&gt;]
ReadMiningArgs(xref:ArgsManager.adoc[ArgsManager] const& args);
----

== Return Value

The block&hyphen;creation options on success, or an error on failure&period;

[NOTE]
====
The return value https://en.cppreference.com/cpp/language/attributes/nodiscard[should not be discarded^].
====
== Parameters

[cols="1,4"]
|===
| Name| Description
| *args*
| Argument manager holding the parsed settings&period;
|===


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