| 48 | |
| 49 | |
| 50 | def lint_missing_hidden_wallet_args(): |
| 51 | wallet_args = check_output(CMD_GREP_WALLET_ARGS, shell=True).decode('utf8').strip() |
| 52 | wallet_hidden_args = check_output(CMD_GREP_WALLET_HIDDEN_ARGS, shell=True).decode('utf8').strip() |
| 53 | |
| 54 | wallet_args = set(re.findall(re.compile(REGEX_DOC), wallet_args)) |
| 55 | wallet_hidden_args = set(re.findall(re.compile(r' "([^"=]+)'), wallet_hidden_args)) |
| 56 | |
| 57 | hidden_missing = wallet_args.difference(wallet_hidden_args) |
| 58 | if hidden_missing: |
| 59 | assert 0, "Please add {} to the hidden args in DummyWalletInit::AddWalletOptions".format(hidden_missing) |
| 60 | |
| 61 | |
| 62 | def main(): |