[GNC] gnucash-cli --quotes get

John Ralls jralls at ceridwen.us
Mon May 17 12:19:42 EDT 2021



> On May 17, 2021, at 4:58 AM, mike823 <fkjasdhf878 at mailinator.com> wrote:
> 
> I might do it. I am looking in gnucash/gnucash-cli.cpp and I see the code
> bellow in Gnucash::GnucashCli::start . Is another developer already working
> on the same functionality?
> 
> 
> 
>    if (m_quotes_cmd)
>    {
>        if (*m_quotes_cmd != "get")
>        {
>            std::cerr << bl::format (bl::translate("Unknown quotes command
> '{1}'")) % *m_quotes_cmd << "\n\n"
>            << *m_opt_desc_display.get();
>            return 1;
>        }
> 
>        if (!m_file_to_load || m_file_to_load->empty())
>        {
>            std::cerr << bl::translate("Missing data file parameter") <<
> "\n\n"
>                      << *m_opt_desc_display.get();
>            return 1;
>        }
>        else
>            return Gnucash::add_quotes (m_file_to_load);
>    }
> 

Not that I know of, but don't overload --get-quotes, write a new command named something like --import-quotes and have it call the same function that File>Import>Import Prices from a CSV File does.

Regards,
John Ralls



More information about the gnucash-user mailing list