@@ -57,12 +57,12 @@ def get_parser():
57
57
)
58
58
59
59
# print version and exit
60
- subparsers .add_parser ("version" , help = "show software version" )
60
+ subparsers .add_parser ("version" , description = "show software version" )
61
61
62
62
# Local shell with client loaded
63
63
shell = subparsers .add_parser (
64
64
"shell" ,
65
- help = "shell into a Python session with a client." ,
65
+ description = "shell into a Python session with a client." ,
66
66
formatter_class = argparse .RawTextHelpFormatter ,
67
67
)
68
68
shell .add_argument (
@@ -82,7 +82,7 @@ def get_parser():
82
82
# Install a known recipe from the registry
83
83
install = subparsers .add_parser (
84
84
"install" ,
85
- help = "install a registry recipe." ,
85
+ description = "install a registry recipe." ,
86
86
formatter_class = argparse .RawTextHelpFormatter ,
87
87
)
88
88
install .add_argument (
@@ -91,7 +91,7 @@ def get_parser():
91
91
)
92
92
93
93
# List installed modules
94
- listing = subparsers .add_parser ("list" , help = "list installed modules." )
94
+ listing = subparsers .add_parser ("list" , description = "list installed modules." )
95
95
listing .add_argument ("pattern" , help = "filter to a pattern" , nargs = "?" )
96
96
listing .add_argument (
97
97
"--names-only" , help = "omit versions" , default = False , action = "store_true"
@@ -106,7 +106,7 @@ def get_parser():
106
106
107
107
# List local containers and collections
108
108
inspect = subparsers .add_parser (
109
- "inspect" , help = "inspect an installed module image."
109
+ "inspect" , description = "inspect an installed module image."
110
110
)
111
111
inspect .add_argument ("module_name" , help = "module to inspect" )
112
112
inspect .add_argument (
@@ -117,7 +117,7 @@ def get_parser():
117
117
)
118
118
119
119
# Get path to an image
120
- get = subparsers .add_parser ("get" , help = "get an image path for a module" )
120
+ get = subparsers .add_parser ("get" , description = "get an image path for a module" )
121
121
get .add_argument ("module_name" , help = "the name of the module" )
122
122
get .add_argument (
123
123
"-e" ,
@@ -128,18 +128,20 @@ def get_parser():
128
128
)
129
129
130
130
# Add a container direcly
131
- add = subparsers .add_parser ("add" , help = "add an image to modules manually" )
131
+ add = subparsers .add_parser ("add" , description = "add an image to modules manually" )
132
132
add .add_argument ("sif_path" , help = "full path to container image file" , nargs = 1 )
133
133
add .add_argument (
134
134
"module_id" , help = 'desired identifier for module (e.g. "name/version")' , nargs = 1
135
135
)
136
136
137
- check = subparsers .add_parser ("check" , help = "check if you have latest installed." )
137
+ check = subparsers .add_parser (
138
+ "check" , description = "check if you have latest installed."
139
+ )
138
140
check .add_argument ("module_name" , help = "module to check (module:version)" )
139
141
140
142
config = subparsers .add_parser (
141
143
"config" ,
142
- help = "update configuration settings. Use set or get to see or set information." ,
144
+ description = "update configuration settings. Use set or get to see or set information." ,
143
145
formatter_class = argparse .RawTextHelpFormatter ,
144
146
)
145
147
@@ -166,19 +168,21 @@ def get_parser():
166
168
)
167
169
# Generate markdown docs for a container registry entry
168
170
docgen = subparsers .add_parser (
169
- "docgen" , help = "Generate a markdown document for a container registry entry."
171
+ "docgen" ,
172
+ description = "Generate a markdown document for a container registry entry." ,
170
173
)
171
174
docgen .add_argument ("module_name" , help = "the module to generate docs for." )
172
175
173
176
# Pull a nontraditional container type (e.g., github release asset)
174
177
pull = subparsers .add_parser (
175
- "pull" , help = "pull a container built with singularityhub/singularity-deploy"
178
+ "pull" ,
179
+ description = "pull a container built with singularityhub/singularity-deploy" ,
176
180
)
177
181
pull .add_argument ("uri" , help = "the unique resource identifier to pull" )
178
182
pull .add_argument ("--path" , help = "A custom path to pull to (defaults to $PWD)" )
179
183
180
184
# Test a registry entry
181
- test = subparsers .add_parser ("test" , help = "test a registry entry" )
185
+ test = subparsers .add_parser ("test" , description = "test a registry entry" )
182
186
test .add_argument ("module_name" , help = "the module to test" )
183
187
test .add_argument (
184
188
"--template" , help = "a custom test.sh template to use." , default = None
@@ -209,7 +213,7 @@ def get_parser():
209
213
)
210
214
211
215
# Uninstall a module, or a specific version
212
- uninstall = subparsers .add_parser ("uninstall" , help = "uninstall a module" )
216
+ uninstall = subparsers .add_parser ("uninstall" , description = "uninstall a module" )
213
217
uninstall .add_argument (
214
218
"--force" ,
215
219
"-f" ,
@@ -252,15 +256,18 @@ def get_parser():
252
256
253
257
namespace = subparsers .add_parser (
254
258
"namespace" ,
255
- help = "set or unset the install namespace. E.g.,:\n shpc namespace set <namespace>\n shpc namespace unset" ,
259
+ description = "set or unset the install namespace. E.g.,:\n shpc namespace set <namespace>\n shpc namespace unset" ,
260
+ formatter_class = argparse .RawTextHelpFormatter ,
256
261
)
257
262
namespace .add_argument (
258
263
"namespace" ,
259
264
help = "command (use/unset) and if use, the namespace to set" ,
260
265
nargs = "*" ,
261
266
)
262
267
263
- show = subparsers .add_parser ("show" , help = "show the config for a registry entry." )
268
+ show = subparsers .add_parser (
269
+ "show" , description = "show the config for a registry entry."
270
+ )
264
271
show .add_argument (
265
272
"--versions" , help = "include versions" , default = False , action = "store_true"
266
273
)
0 commit comments