Skip to content

Commit c3d3b19

Browse files
committed
refactor: upcase help text
Signed-off-by: thxCode <thxcode0824@gmail.com>
1 parent 369f35b commit c3d3b19

File tree

3 files changed

+54
-54
lines changed

3 files changed

+54
-54
lines changed

gpustack_runtime/__main__.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,18 +38,18 @@ def main():
3838
"--version",
3939
action="version",
4040
version=f"%(prog)s {version}({commit_id})",
41-
help="show the version and exit",
41+
help="Show the version and exit",
4242
)
4343
parser.add_argument(
4444
"--profile",
4545
action="store_true",
46-
help="display available behaviors",
46+
help="Display available behaviors",
4747
)
4848
parser.add_argument(
4949
"--watch",
5050
"-w",
5151
type=int,
52-
help="continuously display available behaviors (used with --profile) in intervals of N seconds",
52+
help="Continuously display available behaviors (used with --profile) in intervals of N seconds",
5353
default=0,
5454
)
5555

gpustack_runtime/cmds/deployer.py

Lines changed: 48 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -98,71 +98,71 @@ class CreateRunnerWorkloadSubCommand(SubCommand):
9898
def register(parser: _SubParsersAction):
9999
deploy_parser = parser.add_parser(
100100
"create-runner",
101-
help="create a runner workload deployment",
101+
help="Create a runner workload deployment",
102102
)
103103

104104
deploy_parser.add_argument(
105105
"--backend",
106106
type=str,
107-
help="backend to use (default: detect from current environment)",
107+
help="Backend to use (default: detect from current environment)",
108108
choices=supported_backends(),
109109
)
110110

111111
deploy_parser.add_argument(
112112
"--device",
113113
type=str,
114-
help="device to use, multiple devices join by comma (default: all devices)",
114+
help="Device to use, multiple devices join by comma (default: all devices)",
115115
default="all",
116116
)
117117

118118
deploy_parser.add_argument(
119119
"--port",
120120
type=int,
121-
help="port to expose",
121+
help="Port to expose",
122122
)
123123

124124
deploy_parser.add_argument(
125125
"--host-network",
126126
action="store_true",
127-
help="use host network (default: False)",
127+
help="Use host network (default: False)",
128128
default=False,
129129
)
130130

131131
deploy_parser.add_argument(
132132
"--check",
133133
action="store_true",
134-
help="enable health check, needs --port (default: False)",
134+
help="Enable health check, needs --port (default: False)",
135135
default=False,
136136
)
137137

138138
deploy_parser.add_argument(
139139
"--namespace",
140140
type=str,
141-
help="namespace of the runner",
141+
help="Namespace of the runner",
142142
)
143143

144144
deploy_parser.add_argument(
145145
"service",
146146
type=str,
147-
help="service of the runner",
147+
help="Service of the runner",
148148
)
149149

150150
deploy_parser.add_argument(
151151
"version",
152152
type=str,
153-
help="version of the runner",
153+
help="Version of the runner",
154154
)
155155

156156
deploy_parser.add_argument(
157157
"volume",
158158
type=str,
159-
help="volume to mount",
159+
help="Volume to mount",
160160
)
161161

162162
deploy_parser.add_argument(
163163
"extra_args",
164164
nargs=REMAINDER,
165-
help="extra arguments for the runner",
165+
help="Extra arguments for the runner",
166166
)
167167

168168
deploy_parser.set_defaults(func=CreateRunnerWorkloadSubCommand)
@@ -309,71 +309,71 @@ class CreateWorkloadSubCommand(SubCommand):
309309
def register(parser: _SubParsersAction):
310310
deploy_parser = parser.add_parser(
311311
"create",
312-
help="create a workload deployment",
312+
help="Create a workload deployment",
313313
)
314314

315315
deploy_parser.add_argument(
316316
"--backend",
317317
type=str,
318-
help="backend to use (default: detect from current environment)",
318+
help="Backend to use (default: detect from current environment)",
319319
choices=supported_backends(),
320320
)
321321

322322
deploy_parser.add_argument(
323323
"--device",
324324
type=str,
325-
help="device to use, multiple devices join by comma (default: all devices)",
325+
help="Device to use, multiple devices join by comma (default: all devices)",
326326
default="all",
327327
)
328328

329329
deploy_parser.add_argument(
330330
"--port",
331331
type=int,
332-
help="port to expose",
332+
help="Port to expose",
333333
)
334334

335335
deploy_parser.add_argument(
336336
"--host-network",
337337
action="store_true",
338-
help="use host network (default: False)",
338+
help="Use host network (default: False)",
339339
default=False,
340340
)
341341

342342
deploy_parser.add_argument(
343343
"--check",
344344
action="store_true",
345-
help="enable health check, needs --port (default: False)",
345+
help="Enable health check, needs --port (default: False)",
346346
default=False,
347347
)
348348

349349
deploy_parser.add_argument(
350350
"--namespace",
351351
type=str,
352-
help="namespace of the workload",
352+
help="Namespace of the workload",
353353
)
354354

355355
deploy_parser.add_argument(
356356
"name",
357357
type=str,
358-
help="name of the workload",
358+
help="Name of the workload",
359359
)
360360

361361
deploy_parser.add_argument(
362362
"image",
363363
type=str,
364-
help="image to deploy (should be a valid Docker image)",
364+
help="Image to deploy (should be a valid Docker image)",
365365
)
366366

367367
deploy_parser.add_argument(
368368
"volume",
369369
type=str,
370-
help="volume to mount",
370+
help="Volume to mount",
371371
)
372372

373373
deploy_parser.add_argument(
374374
"extra_args",
375375
nargs=REMAINDER,
376-
help="extra arguments for the workload",
376+
help="Extra arguments for the workload",
377377
)
378378

379379
deploy_parser.set_defaults(func=CreateWorkloadSubCommand)
@@ -511,19 +511,19 @@ class DeleteWorkloadSubCommand(SubCommand):
511511
def register(parser: _SubParsersAction):
512512
delete_parser = parser.add_parser(
513513
"delete",
514-
help="delete a workload deployment",
514+
help="Delete a workload deployment",
515515
)
516516

517517
delete_parser.add_argument(
518518
"--namespace",
519519
type=str,
520-
help="namespace of the workload",
520+
help="Namespace of the workload",
521521
)
522522

523523
delete_parser.add_argument(
524524
"name",
525525
type=str,
526-
help="name of the workload",
526+
help="Name of the workload",
527527
)
528528

529529
delete_parser.set_defaults(func=DeleteWorkloadSubCommand)
@@ -556,20 +556,20 @@ class DeleteWorkloadsSubCommand(SubCommand):
556556
def register(parser: _SubParsersAction):
557557
delete_parser = parser.add_parser(
558558
"delete-all",
559-
help="delete all workload deployments",
559+
help="Delete all workload deployments",
560560
)
561561

562562
delete_parser.add_argument(
563563
"--namespace",
564564
type=str,
565-
help="namespace of the workload",
565+
help="Namespace of the workload",
566566
)
567567

568568
delete_parser.add_argument(
569569
"--labels",
570570
type=lambda s: dict(item.split("=") for item in s.split(",")),
571571
required=False,
572-
help="filter workloads by labels (key=value pairs separated by commas)",
572+
help="Filter workloads by labels (key=value pairs separated by commas)",
573573
)
574574

575575
delete_parser.set_defaults(func=DeleteWorkloadsSubCommand)
@@ -607,35 +607,35 @@ class GetWorkloadSubCommand(SubCommand):
607607
def register(parser: _SubParsersAction):
608608
get_parser = parser.add_parser(
609609
"get",
610-
help="get the status of a workload deployment",
610+
help="Get the status of a workload deployment",
611611
)
612612

613613
get_parser.add_argument(
614614
"--format",
615615
type=str,
616616
choices=["table", "json"],
617617
default="table",
618-
help="output format",
618+
help="Putput format",
619619
)
620620

621621
get_parser.add_argument(
622622
"--watch",
623623
"-w",
624624
type=int,
625-
help="continuously watch for the workload in intervals of N seconds",
625+
help="Continuously watch for the workload in intervals of N seconds",
626626
default=0,
627627
)
628628

629629
get_parser.add_argument(
630630
"--namespace",
631631
type=str,
632-
help="namespace of the workload",
632+
help="Namespace of the workload",
633633
)
634634

635635
get_parser.add_argument(
636636
"name",
637637
type=str,
638-
help="name of the workload",
638+
help="Name of the workload",
639639
)
640640

641641
get_parser.set_defaults(func=GetWorkloadSubCommand)
@@ -683,35 +683,35 @@ class ListWorkloadsSubCommand(SubCommand):
683683
def register(parser: _SubParsersAction):
684684
list_parser = parser.add_parser(
685685
"list",
686-
help="list all workload deployments",
686+
help="List all workload deployments",
687687
)
688688

689689
list_parser.add_argument(
690690
"--namespace",
691691
type=str,
692-
help="namespace of the workloads",
692+
help="Namespace of the workloads",
693693
)
694694

695695
list_parser.add_argument(
696696
"--labels",
697697
type=lambda s: dict(item.split("=") for item in s.split(",")),
698698
required=False,
699-
help="filter workloads by labels (key=value pairs separated by commas)",
699+
help="Filter workloads by labels (key=value pairs separated by commas)",
700700
)
701701

702702
list_parser.add_argument(
703703
"--format",
704704
type=str,
705705
choices=["table", "json"],
706706
default="table",
707-
help="output format",
707+
help="Output format",
708708
)
709709

710710
list_parser.add_argument(
711711
"--watch",
712712
"-w",
713713
type=int,
714-
help="continuously watch for workloads in intervals of N seconds",
714+
help="Continuously watch for workloads in intervals of N seconds",
715715
)
716716

717717
list_parser.set_defaults(func=ListWorkloadsSubCommand)
@@ -753,33 +753,33 @@ class LogsWorkloadSubCommand(SubCommand):
753753
def register(parser: _SubParsersAction):
754754
logs_parser = parser.add_parser(
755755
"logs",
756-
help="get the logs of a workload deployment",
756+
help="Get the logs of a workload deployment",
757757
)
758758

759759
logs_parser.add_argument(
760760
"--tail",
761761
type=int,
762-
help="number of lines to show from the end of the logs (default: -1)",
762+
help="Number of lines to show from the end of the logs (default: -1)",
763763
default=-1,
764764
)
765765

766766
logs_parser.add_argument(
767767
"--follow",
768768
"-f",
769769
action="store_true",
770-
help="follow the logs in real-time",
770+
help="Follow the logs in real-time",
771771
)
772772

773773
logs_parser.add_argument(
774774
"--namespace",
775775
type=str,
776-
help="namespace of the workload",
776+
help="Namespace of the workload",
777777
)
778778

779779
logs_parser.add_argument(
780780
"name",
781781
type=str,
782-
help="name of the workload",
782+
help="Name of the workload",
783783
)
784784

785785
logs_parser.set_defaults(func=LogsWorkloadSubCommand)
@@ -829,32 +829,32 @@ class ExecWorkloadSubCommand(SubCommand):
829829
def register(parser: _SubParsersAction):
830830
exec_parser = parser.add_parser(
831831
"exec",
832-
help="execute a command in a workload deployment",
832+
help="Execute a command in a workload deployment",
833833
)
834834

835835
exec_parser.add_argument(
836836
"--interactive",
837837
"-i",
838838
action="store_true",
839-
help="interactive mode",
839+
help="Interactive mode",
840840
)
841841

842842
exec_parser.add_argument(
843843
"--namespace",
844844
type=str,
845-
help="namespace of the workload",
845+
help="Namespace of the workload",
846846
)
847847

848848
exec_parser.add_argument(
849849
"name",
850850
type=str,
851-
help="name of the workload",
851+
help="Name of the workload",
852852
)
853853

854854
exec_parser.add_argument(
855855
"command",
856856
nargs=REMAINDER,
857-
help="command to execute in the workload",
857+
help="Command to execute in the workload",
858858
)
859859

860860
exec_parser.set_defaults(func=ExecWorkloadSubCommand)

0 commit comments

Comments
 (0)