gnucash-cli.cpp (gnucash-5.0.tar.bz2) | : | gnucash-cli.cpp (gnucash-5.1.tar.bz2) | ||
---|---|---|---|---|
skipping to change at line 142 | skipping to change at line 142 | |||
Gnucash::CoreApp::start(); | Gnucash::CoreApp::start(); | |||
if (!m_quotes_cmd.empty()) | if (!m_quotes_cmd.empty()) | |||
{ | { | |||
if (m_quotes_cmd.front() == "info") | if (m_quotes_cmd.front() == "info") | |||
{ | { | |||
return Gnucash::check_finance_quote (); | return Gnucash::check_finance_quote (); | |||
} | } | |||
else if (m_quotes_cmd.front() == "get") | else if (m_quotes_cmd.front() == "get") | |||
{ | { | |||
if (!m_file_to_load && m_quotes_cmd.size() == 2) | ||||
m_file_to_load = m_quotes_cmd[1]; | ||||
if (!m_file_to_load || m_file_to_load->empty()) | if (!m_file_to_load || m_file_to_load->empty()) | |||
{ | { | |||
std::cerr << bl::translate("Missing data file parameter") << "\n \n" | std::cerr << bl::translate("Missing data file parameter") << "\n \n" | |||
<< *m_opt_desc_display.get() << std::endl; | << *m_opt_desc_display.get() << std::endl; | |||
return 1; | return 1; | |||
} | } | |||
else | else | |||
return Gnucash::add_quotes (m_file_to_load); | return Gnucash::add_quotes (m_file_to_load); | |||
} | } | |||
End of changes. 1 change blocks. | ||||
0 lines changed or deleted | 2 lines changed or added |