Skip to content

Commit a1213db

Browse files
committed
fix: cli argument parsing
Signed-off-by: thxCode <[email protected]>
1 parent 20fddd3 commit a1213db

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

gpustack_runtime/cmds/deployer.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ class CreateRunnerWorkloadSubCommand(SubCommand):
8585

8686
backend: str
8787
device: str
88-
command_script: str
88+
command_script: str | None
8989
port: int
9090
host_network: bool
9191
check: bool
@@ -178,6 +178,7 @@ def register(parser: _SubParsersAction):
178178
def __init__(self, args: Namespace):
179179
self.backend = args.backend
180180
self.device = args.device
181+
self.command_script = None
181182
self.port = args.port
182183
self.host_network = args.host_network
183184
self.check = args.check
@@ -317,7 +318,7 @@ class CreateWorkloadSubCommand(SubCommand):
317318

318319
backend: str
319320
device: str
320-
command_script: str
321+
command_script: str | None
321322
port: int
322323
host_network: bool
323324
check: bool
@@ -409,6 +410,7 @@ def register(parser: _SubParsersAction):
409410
def __init__(self, args: Namespace):
410411
self.backend = args.backend
411412
self.device = args.device
413+
self.command_script = None
412414
self.port = args.port
413415
self.host_network = args.host_network
414416
self.check = args.check

0 commit comments

Comments
 (0)