diff options
Diffstat (limited to 'src/main_gui.cpp')
| -rw-r--r-- | src/main_gui.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/main_gui.cpp b/src/main_gui.cpp index 3f52e91..395cc0f 100644 --- a/src/main_gui.cpp +++ b/src/main_gui.cpp | |||
| @@ -114,7 +114,8 @@ static void PrintUsage() | |||
| 114 | printf(" /gen\n"); | 114 | printf(" /gen\n"); |
| 115 | printf(" /nogui or /daemon\n"); | 115 | printf(" /nogui or /daemon\n"); |
| 116 | printf(" /selftest=wallet-keypool, wallet-hd, wallet-format, wallet-crypto, wallet-encrypt,\n"); | 116 | printf(" /selftest=wallet-keypool, wallet-hd, wallet-format, wallet-crypto, wallet-encrypt,\n"); |
| 117 | printf(" net-message, consensus-limits, pool-stratum, parse-money, socks5-proxy, or managed-tor\n"); | 117 | printf(" wallet-portability, net-message, consensus-limits, pool-stratum,\n"); |
| 118 | printf(" parse-money, socks5-proxy, or managed-tor\n"); | ||
| 118 | printf("\n"); | 119 | printf("\n"); |
| 119 | printf("Mining mode:\n"); | 120 | printf("Mining mode:\n"); |
| 120 | printf(" /operator\n"); | 121 | printf(" /operator\n"); |
| @@ -171,6 +172,10 @@ static void PrintUsage() | |||
| 171 | printf(" /recoveryaudit (show how much spendable balance is\n"); | 172 | printf(" /recoveryaudit (show how much spendable balance is\n"); |
| 172 | printf(" covered by the recovery phrase;\n"); | 173 | printf(" covered by the recovery phrase;\n"); |
| 173 | printf(" exits 2 when wallet.dat is still needed)\n"); | 174 | printf(" exits 2 when wallet.dat is still needed)\n"); |
| 175 | printf(" /walletstorageaudit (count wallet.dat record types without\n"); | ||
| 176 | printf(" printing wallet values, then exit)\n"); | ||
| 177 | printf(" /walletstorageauditjson=FILE\n"); | ||
| 178 | printf(" (write the same audit as deterministic JSON)\n"); | ||
| 174 | printf(" /rescan (walk the chain for coins this wallet owns\n"); | 179 | printf(" /rescan (walk the chain for coins this wallet owns\n"); |
| 175 | printf(" but never recorded, then exit)\n"); | 180 | printf(" but never recorded, then exit)\n"); |
| 176 | printf("\n"); | 181 | printf("\n"); |
| @@ -703,6 +708,17 @@ int main(int argc, char* argv[]) | |||
| 703 | return nRet; | 708 | return nRet; |
| 704 | } | 709 | } |
| 705 | 710 | ||
| 711 | string strWalletStorageAuditJson = | ||
| 712 | argval2(argc, argv, "/walletstorageauditjson", "-walletstorageauditjson"); | ||
| 713 | if (arg(argc,argv,"/walletstorageaudit") || | ||
| 714 | arg(argc,argv,"-walletstorageaudit") || | ||
| 715 | !strWalletStorageAuditJson.empty()) | ||
| 716 | { | ||
| 717 | int nRet = CmdWalletStorageAudit(strWalletStorageAuditJson); | ||
| 718 | DBFlush(true); | ||
| 719 | return nRet; | ||
| 720 | } | ||
| 721 | |||
| 706 | if (arg(argc,argv,"/newphrase") || arg(argc,argv,"-newphrase")) | 722 | if (arg(argc,argv,"/newphrase") || arg(argc,argv,"-newphrase")) |
| 707 | { | 723 | { |
| 708 | int nRet = CmdNewPhrase(); | 724 | int nRet = CmdNewPhrase(); |