From a6198e3284203d689161e0cac19f0baab4a04e7b Mon Sep 17 00:00:00 2001 From: aoright <102943475+aoright@users.noreply.github.com> Date: Thu, 20 Aug 2026 17:11:36 +0800 Subject: [PATCH] docs: add docstrings for argument and option helpers Signed-off-by: aoright <102943475+aoright@users.noreply.github.com> --- src/cleo/helpers.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/cleo/helpers.py b/src/cleo/helpers.py index e2b922cc..229cecd9 100644 --- a/src/cleo/helpers.py +++ b/src/cleo/helpers.py @@ -13,6 +13,7 @@ def argument( multiple: bool = False, default: Any | None = None, ) -> Argument: + """Create a new command line argument.""" return Argument( name, required=not optional, @@ -31,6 +32,7 @@ def option( multiple: bool = False, default: Any | None = None, ) -> Option: + """Create a new command line option.""" return Option( long_name, short_name, @@ -44,7 +46,7 @@ def option( def tokenize(string: str) -> list[str]: # pragma: no cover """ - Split the string using shell-like syntax. Maps directly to using `shlex.split` + Split the string using shell-like syntax. Maps directly to using `shlex.split`. """ import shlex