Update utils/generate-command-code.py

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
debing.sun 2025-08-05 22:40:48 +08:00 committed by GitHub
parent 4a2e021e9e
commit d95dfcc8c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -207,7 +207,7 @@ class Argument(object):
s += "CMD_ARG_MULTIPLE|"
if self.desc.get("multiple_token", False):
assert self.desc.get("multiple", False) # Sanity
assert self.desc.get("token", None)
assert "token" in self.desc
s += "CMD_ARG_MULTIPLE_TOKEN|"
return s[:-1] if s else "CMD_ARG_NONE"