Skip to content

Commit c416aec

Browse files
Jenkinsopenstack-gerrit
authored andcommitted
Merge "Add ":option: " in the help message"
2 parents 6707957 + 75f2875 commit c416aec

File tree

8 files changed

+41
-29
lines changed

8 files changed

+41
-29
lines changed

doc/source/command-objects/aggregate.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ Add host to aggregate
2424

2525
Aggregate (name or ID)
2626

27+
.. _aggregate_add_host-host:
2728
.. describe:: <host>
2829

2930
Host to add to :ref:`\<aggregate\> <aggregate_add_host-aggregate>`
@@ -49,6 +50,7 @@ Create a new aggregate
4950

5051
Property to add to this aggregate (repeat option to set multiple properties)
5152

53+
.. _aggregate_create-name:
5254
.. describe:: <name>
5355

5456
New aggregate name
@@ -64,6 +66,7 @@ Delete existing aggregate(s)
6466
openstack aggregate delete
6567
<aggregate> [<aggregate> ...]
6668
69+
.. _aggregate_delete-aggregate:
6770
.. describe:: <aggregate>
6871

6972
Aggregate(s) to delete (name or ID)
@@ -100,6 +103,7 @@ Remove host from aggregate
100103

101104
Aggregate (name or ID)
102105

106+
.. _aggregate_remove_host-host:
103107
.. describe:: <host>
104108

105109
Host to remove from :ref:`\<aggregate\> <aggregate_remove_host-aggregate>`
@@ -135,7 +139,7 @@ Set aggregate properties
135139
.. option:: --no-property
136140

137141
Remove all properties from :ref:`\<aggregate\> <aggregate_set-aggregate>`
138-
(specify both --property and --no-property to
142+
(specify both :option:`--property` and :option:`--no-property` to
139143
overwrite the current properties)
140144

141145
.. _aggregate_set-aggregate:
@@ -154,6 +158,7 @@ Display aggregate details
154158
openstack aggregate show
155159
<aggregate>
156160
161+
.. _aggregate_show-aggregate:
157162
.. describe:: <aggregate>
158163

159164
Aggregate to display (name or ID)

doc/source/command-objects/compute-service.rst

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Delete compute service(s)
1515
openstack compute service delete
1616
<service> [<service> ...]
1717
18-
.. _compute-service-delete:
18+
.. _compute_service_delete-service:
1919
.. describe:: <service>
2020

2121
Compute service(s) to delete (ID only)
@@ -33,7 +33,6 @@ List compute services
3333
[--service <service>]
3434
[--long]
3535
36-
.. _compute-service-list:
3736
.. option:: --host <host>
3837

3938
List services on specified host (name only)
@@ -46,7 +45,6 @@ List compute services
4645

4746
List additional fields in output
4847

49-
5048
compute service set
5149
-------------------
5250

@@ -61,7 +59,6 @@ Set compute service properties
6159
[--up | --down]
6260
<host> <service>
6361
64-
.. _compute-service-set:
6562
.. option:: --enable
6663

6764
Enable service
@@ -72,7 +69,7 @@ Set compute service properties
7269

7370
.. option:: --disable-reason <reason>
7471

75-
Reason for disabling the service (in quotes). Should be used with --disable option.
72+
Reason for disabling the service (in quotes). Should be used with :option:`--disable` option.
7673

7774
.. option:: --up
7875

@@ -82,11 +79,11 @@ Set compute service properties
8279

8380
Force down service
8481

82+
.. _compute_service_set-host:
8583
.. describe:: <host>
8684

8785
Name of host
8886

8987
.. describe:: <service>
9088

9189
Name of service (Binary name)
92-

doc/source/command-objects/image.rst

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ Associate project with image
2323
Domain the project belongs to (name or ID).
2424
This can be used in case collisions between project names exist.
2525

26+
.. _image_add_project-image:
2627
.. describe:: <image>
2728

2829
Image to share (name or ID).
2930

31+
.. _image_add_project-project:
3032
.. describe:: <project>
3133

3234
Project to associate with image (name or ID)
@@ -83,15 +85,15 @@ Create/upload an image
8385
8486
.. option:: --size <size>
8587
86-
Image size, in bytes (only used with --location and --copy-from)
88+
Image size, in bytes (only used with :option:`--location` and :option:`--copy-from`)
8789
8890
*Image version 1 only.*
8991
9092
.. option:: --min-disk <disk-gb>
9193
9294
Minimum disk size needed to boot image, in gigabytes
9395
94-
.. option:: --min-ram <disk-ram>
96+
.. option:: --min-ram <ram-mb>
9597
9698
Minimum RAM size needed to boot image, in megabytes
9799
@@ -103,7 +105,7 @@ Create/upload an image
103105
104106
.. option:: --copy-from <image-url>
105107
106-
Copy image from the data store (similar to --location)
108+
Copy image from the data store (similar to :option:`--location`)
107109
108110
*Image version 1 only.*
109111
@@ -117,7 +119,7 @@ Create/upload an image
117119
118120
.. option:: --force
119121
120-
Force image creation if volume is in use (only meaningful with --volume)
122+
Force image creation if volume is in use (only meaningful with :option:`--volume`)
121123
122124
.. option:: --checksum <checksum>
123125
@@ -163,6 +165,7 @@ Create/upload an image
163165
164166
.. versionadded:: 2
165167
168+
.. _image_create-image-name:
166169
.. describe:: <image-name>
167170
168171
New image name
@@ -178,6 +181,7 @@ Delete image(s)
178181
openstack image delete
179182
<image>
180183
184+
.. _image_delete-image:
181185
.. describe:: <image>
182186
183187
Image(s) to delete (name or ID)
@@ -246,13 +250,15 @@ Disassociate project with image
246250
247251
openstack image remove remove
248252
[--project-domain <project-domain>]
249-
<image> <project>
253+
<image>
254+
<project>
250255
251256
.. option:: --project-domain <project-domain>
252257
253258
Domain the project belongs to (name or ID).
254259
This can be used in case collisions between project names exist.
255260
261+
.. _image_remove_project:
256262
.. describe:: <image>
257263
258264
Image to unshare (name or ID).
@@ -277,6 +283,7 @@ Save an image locally
277283
278284
Downloaded image save filename (default: stdout)
279285
286+
.. _image_save-image:
280287
.. describe:: <image>
281288
282289
Image to save (name or ID)
@@ -294,7 +301,7 @@ Set image properties
294301
openstack image set
295302
[--name <name>]
296303
[--min-disk <disk-gb>]
297-
[--min-ram <disk-ram>]
304+
[--min-ram <ram-mb>]
298305
[--container-format <container-format>]
299306
[--disk-format <disk-format>]
300307
[--size <size>]
@@ -328,7 +335,7 @@ Set image properties
328335
329336
Minimum disk size needed to boot image, in gigabytes
330337
331-
.. option:: --min-ram <disk-ram>
338+
.. option:: --min-ram <ram-mb>
332339
333340
Minimum RAM size needed to boot image, in megabytes
334341
@@ -377,7 +384,7 @@ Set image properties
377384
378385
.. option:: --copy-from <image-url>
379386
380-
Copy image from the data store (similar to --location)
387+
Copy image from the data store (similar to :option:`--location`)
381388
382389
*Image version 1 only.*
383390
@@ -395,7 +402,7 @@ Set image properties
395402
396403
.. option:: --force
397404
398-
Force image update if volume is in use (only meaningful with --volume)
405+
Force image update if volume is in use (only meaningful with :option:`--volume`)
399406
400407
*Image version 1 only.*
401408
@@ -483,6 +490,7 @@ Set image properties
483490
484491
.. versionadded:: 2
485492
493+
.. _image_set-image:
486494
.. describe:: <image>
487495
488496
Image to modify (name or ID)
@@ -498,6 +506,7 @@ Display image details
498506
openstack image show
499507
<image>
500508
509+
.. _image_show-image:
501510
.. describe:: <image>
502511
503512
Image to display (name or ID)
@@ -525,6 +534,7 @@ Unset image tags or properties
525534
526535
Unset a property on this image (repeat option to unset multiple properties)
527536
537+
.. _image_unset-image:
528538
.. describe:: <image>
529539
530540
Image to modify (name or ID)

doc/source/command-objects/limits.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ Show compute and block storage limits
3434

3535
.. option:: --project <project>
3636

37-
Show limits for a specific project (name or ID) [only valid with --absolute]
37+
Show limits for a specific project (name or ID) [only valid with :option:`--absolute`]
3838

3939
.. option:: --domain <domain>
4040

41-
Domain the project belongs to (name or ID) [only valid with --absolute]
41+
Domain the project belongs to (name or ID) [only valid with :option:`--absolute`]

doc/source/command-objects/port.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -214,7 +214,7 @@ Set port properties
214214
.. option:: --no-fixed-ip
215215
216216
Clear existing information of fixed IP addresses.
217-
Specify both --fixed-ip and --no-fixed-ip
217+
Specify both :option:`--fixed-ip` and :option:`--no-fixed-ip`
218218
to overwrite the current fixed IP addresses.
219219
220220
.. option:: --device <device-id>
@@ -240,7 +240,7 @@ Set port properties
240240
.. option:: --no-binding-profile
241241
242242
Clear existing information of binding:profile.
243-
Specify both --binding-profile and --no-binding-profile
243+
Specify both :option:`--binding-profile` and :option:`--no-binding-profile`
244244
to overwrite the current binding:profile information.
245245
246246
.. option:: --host <host-id>

doc/source/command-objects/service.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ Delete service(s)
5454
openstack service delete
5555
<service> [<service> ...]
5656
57-
.. _service_delete-type:
57+
.. _service_delete-service:
5858
.. describe:: <service>
5959

6060
Service(s) to delete (type, name or ID)

doc/source/command-objects/subnet.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Create new subnet
4949
5050
.. option:: --use-default-subnet-pool
5151
52-
Use default subnet pool for ``--ip-version``
52+
Use default subnet pool for :option:`--ip-version`
5353
5454
.. option:: --prefix-length <prefix-length>
5555
@@ -58,7 +58,7 @@ Create new subnet
5858
.. option:: --subnet-range <subnet-range>
5959
6060
Subnet range in CIDR notation
61-
(required if ``--subnet-pool`` is not specified, optional otherwise)
61+
(required if :option:`--subnet-pool` is not specified, optional otherwise)
6262
6363
.. option:: --allocation-pool start=<ip-address>,end=<ip-address>
6464
@@ -249,7 +249,7 @@ Set subnet properties
249249
.. option:: --no-allocation-pool
250250
251251
Clear associated allocation pools from this subnet.
252-
Specify both --allocation-pool and --no-allocation-pool
252+
Specify both :option:`--allocation-pool` and :option:`--no-allocation-pool`
253253
to overwrite the current allocation pool information.
254254
255255
.. option:: --dhcp
@@ -267,7 +267,7 @@ Set subnet properties
267267
.. option:: --no-dns-nameservers
268268
269269
Clear existing information of DNS servers.
270-
Specify both --dns-nameserver and --no-dns-nameservers
270+
Specify both :option:`--dns-nameserver` and :option:`--no-dns-nameservers`
271271
to overwrite the current DNS server information.
272272
273273
.. option:: --gateway <gateway>
@@ -287,7 +287,7 @@ Set subnet properties
287287
.. option:: --no-host-route
288288
289289
Clear associated host routes from this subnet.
290-
Specify both --host-route and --no-host-route
290+
Specify both :option:`--host-route` and :option:`--no-host-route`
291291
to overwrite the current host route information.
292292
293293
.. option:: --service-type <service-type>

doc/source/command-objects/volume-service.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ List volume service
1717
[--service <service>]
1818
[--long]
1919
20-
.. _volume-service-list:
2120
.. option:: --host <host>
2221

2322
List services on specified host (name only)
@@ -54,9 +53,10 @@ Set volume service properties
5453

5554
.. option:: --disable-reason <reason>
5655

57-
Reason for disabling the service (should be used with --disable option)
56+
Reason for disabling the service
57+
(should be used with :option:`--disable` option)
5858

59-
.. _volume-service-set:
59+
.. _volume_service_set-host:
6060
.. describe:: <host>
6161

6262
Name of host

0 commit comments

Comments
 (0)