doc/arg.split

This commit is contained in:
Marc Beninca 2024-09-15 15:07:47 +02:00
parent 04eaae7ba3
commit db47d5c80a
Signed by: marc.beninca
GPG key ID: 9C7613450C80C24F

View file

@ -4,6 +4,10 @@ import sys
def split() -> tuple[str, list[str]]: def split() -> tuple[str, list[str]]:
"""Split command & actual arguments.""" """Split command & actual arguments.
:return: both
:rtype: tuple[str, list[str]]
"""
command, *arguments = sys.argv command, *arguments = sys.argv
return command, arguments return command, arguments