mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-15 12:51:00 +02:00
Merge b6e34afe97 into merged_master (Bitcoin PR #17184)
This commit is contained in:
commit
db225166af
1 changed files with 9 additions and 0 deletions
|
|
@ -385,6 +385,15 @@ bool ArgsManager::ParseParameters(int argc, const char* const argv[], std::strin
|
|||
|
||||
for (int i = 1; i < argc; i++) {
|
||||
std::string key(argv[i]);
|
||||
|
||||
#ifdef MAC_OSX
|
||||
// At the first time when a user gets the "App downloaded from the
|
||||
// internet" warning, and clicks the Open button, macOS passes
|
||||
// a unique process serial number (PSN) as -psn_... command-line
|
||||
// argument, which we filter out.
|
||||
if (key.substr(0, 5) == "-psn_") continue;
|
||||
#endif
|
||||
|
||||
if (key == "-") break; //bitcoin-tx using stdin
|
||||
std::string val;
|
||||
size_t is_index = key.find('=');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue