arg.split
This commit is contained in:
parent
80a1b90759
commit
51b0f7d662
1 changed files with 2 additions and 1 deletions
|
@ -2,4 +2,5 @@ import sys
|
||||||
|
|
||||||
|
|
||||||
def split() -> tuple[str, list[str]]:
|
def split() -> tuple[str, list[str]]:
|
||||||
return sys.argv[0], sys.argv[1:]
|
command, *arguments = sys.argv
|
||||||
|
return command, arguments
|
||||||
|
|
Loading…
Reference in a new issue