From dd355e49d5f05394930f68d3a14aebc2747a9624 Mon Sep 17 00:00:00 2001 From: aoaostar Date: Wed, 21 Jul 2021 00:23:01 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=91=BD=E4=BB=A4=E8=A1=8C?= =?UTF-8?q?=E5=8F=82=E6=95=B0=E6=95=B0=E7=BB=84=E8=B6=8A=E7=95=8C=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Client.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Client.py b/Client.py index 0d53827..ce03112 100644 --- a/Client.py +++ b/Client.py @@ -72,10 +72,16 @@ def init_config(self): raise e def init_command_line_parameter(self): + unset_keys = [] + for k in range(len(sys.argv)): if sys.argv[k] == '--resident' or sys.argv[k] == '-r': DATA['config']['RESIDENT'] = True - del sys.argv[k] + unset_keys.append(k) + + for v in unset_keys: + del sys.argv[v] + # 命令分配 if len(sys.argv) == 3: # 网盘保存路径