Beispiel #1
0
bool payaddr_from_argv(payaddr_list& payaddrs, int argc, char** argv)
{
    for (size_t i = 1; i < argc; ++i)
    {
        payment_address payaddr;
        if (!payaddr.set_encoded(argv[i]))
            return false;
        payaddrs.push_back(payaddr);
    }
    return true;
}
Beispiel #2
0
bool payaddr_from_argv(payaddr_list& payaddrs, int argc, char** argv)
{
    for (int i = 1; i < argc; ++i)
    {
        const std::string arg = argv[i];
        if (arg == "-j" || arg == "--json")
        {
            json_output = true;
            continue;
        }
        payment_address payaddr;
        if (!payaddr.set_encoded(arg))
            return false;
        payaddrs.push_back(payaddr);
    }
    return true;
}