diff --git a/Makefile.am b/Makefile.am index 0671642aa..9a35c9e89 100644 --- a/Makefile.am +++ b/Makefile.am @@ -160,3 +160,6 @@ DISTCHECK_CONFIGURE_FLAGS = --enable-man clean-local: rm -rf test_bitcoin.coverage/ zcash-gtest.coverage/ total.coverage/ + +clean: + rm -rf *.o diff --git a/src/bitcoin-cli-res.rc b/src/bitcoin-cli-res.rc index d365e0b49..1abd42d07 100644 --- a/src/bitcoin-cli-res.rc +++ b/src/bitcoin-cli-res.rc @@ -16,14 +16,14 @@ BEGIN BEGIN BLOCK "040904E4" // U.S. English - multilingual (hex) BEGIN - VALUE "CompanyName", "Zcash" - VALUE "FileDescription", "zcash-cli (JSON-RPC client for Zcash)" + VALUE "CompanyName", "Asofe" + VALUE "FileDescription", "asofe-cli (JSON-RPC client for Zcash)" VALUE "FileVersion", VER_FILEVERSION_STR - VALUE "InternalName", "zcash-cli" + VALUE "InternalName", "asofe-cli" VALUE "LegalCopyright", COPYRIGHT_STR VALUE "LegalTrademarks1", "Distributed under the MIT software license, see the accompanying file COPYING or http://www.opensource.org/licenses/mit-license.php." - VALUE "OriginalFilename", "zcash-cli.exe" - VALUE "ProductName", "zcash-cli" + VALUE "OriginalFilename", "asofe-cli.exe" + VALUE "ProductName", "asofe-cli" VALUE "ProductVersion", VER_PRODUCTVERSION_STR END END diff --git a/src/bitcoin-cli.cpp b/src/bitcoin-cli.cpp index 4ec76d2f5..c8d32b351 100644 --- a/src/bitcoin-cli.cpp +++ b/src/bitcoin-cli.cpp @@ -69,20 +69,24 @@ static bool AppInitRPC(int argc, char* argv[]) // ParseParameters(argc, argv); if (argc<2 || mapArgs.count("-?") || mapArgs.count("-h") || mapArgs.count("-help") || mapArgs.count("-version")) { - std::string strUsage = _("Zcash RPC client version") + " " + FormatFullVersion() + "\n" + PrivacyInfo(); + std::string strUsage = _("Asofe RPC client version") + " " + FormatFullVersion() + "\n" + PrivacyInfo(); if (!mapArgs.count("-version")) { strUsage += "\n" + _("Usage:") + "\n" + - " zcash-cli [options] [params] " + _("Send command to Zcash") + "\n" + - " zcash-cli [options] help " + _("List commands") + "\n" + - " zcash-cli [options] help " + _("Get help for a command") + "\n"; + " asofe-cli [options] [params] " + _("Send command to Asofe") + "\n" + + " asofe-cli [options] help " + _("List commands") + "\n" + + " asofe-cli [options] help " + _("Get help for a command") + "\n"; strUsage += "\n" + HelpMessageCli(); } else { strUsage += LicenseInfo(); } - fprintf(stdout, "%s", strUsage.c_str()); - return false; + fprintf(stdout, "%s", strUsage.c_str()); + if (argc < 2) { + fprintf(stderr, "Error: too few parameters\n"); + return EXIT_FAILURE; + } + return EXIT_SUCCESS; } if (!boost::filesystem::is_directory(GetDataDir(false))) { fprintf(stderr, "Error: Specified data directory \"%s\" does not exist.\n", mapArgs["-datadir"].c_str());