From 51b0f7d662dd67afa78404fd78b1bc099f928bc3 Mon Sep 17 00:00:00 2001 From: Marc Beninca Date: Fri, 16 Feb 2024 16:07:36 +0100 Subject: [PATCH] arg.split --- arg/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arg/__init__.py b/arg/__init__.py index 5db26ae..aa6e4b8 100644 --- a/arg/__init__.py +++ b/arg/__init__.py @@ -2,4 +2,5 @@ import sys def split() -> tuple[str, list[str]]: - return sys.argv[0], sys.argv[1:] + command, *arguments = sys.argv + return command, arguments