Browse Source
Merge pull request #5898 from leo-lb/plausible-deniability-config
Add command line option to forget config on exit.
hard-fail-on-bad-server-string
ThomasV
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
0 deletions
-
electrum/commands.py
-
electrum/simple_config.py
|
|
@ -1235,6 +1235,7 @@ def add_global_options(parser): |
|
|
|
|
|
|
|
def add_wallet_option(parser): |
|
|
|
parser.add_argument("-w", "--wallet", dest="wallet_path", help="wallet path") |
|
|
|
parser.add_argument("--forgetconfig", action="store_true", dest="forget_config", default=False, help="Forget config on exit") |
|
|
|
|
|
|
|
def get_parser(): |
|
|
|
# create main parser |
|
|
|
|
|
@ -225,6 +225,8 @@ class SimpleConfig(Logger): |
|
|
|
return key not in self.cmdline_options |
|
|
|
|
|
|
|
def save_user_config(self): |
|
|
|
if self.get('forget_config'): |
|
|
|
return |
|
|
|
if not self.path: |
|
|
|
return |
|
|
|
path = os.path.join(self.path, "config") |
|
|
|