Browse code

Change all optional unit to [unit]

As suggested before, we should change every signal one.

Signed-off-by: Qiang Huang <h.huangqiang@huawei.com>

Qiang Huang authored on 2015/08/22 13:29:52
Showing 3 changed files
... ...
@@ -134,9 +134,9 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s i -l interac
134 134
 complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l ipc -d 'Default is to create a private IPC namespace (POSIX SysV IPC) for the container'
135 135
 complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l link -d 'Add link to another container in the form of <name|id>:alias'
136 136
 complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l lxc-conf -d '(lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"'
137
-complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s m -l memory -d 'Memory limit (format: <number><optional unit>, where unit = b, k, m or g)'
137
+complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s m -l memory -d 'Memory limit (format: <number>[<unit>], where unit = b, k, m or g)'
138 138
 complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l mac-address -d 'Container MAC address (e.g. 92:d0:c6:0a:29:33)'
139
-complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: <number><optional unit>, where unit = b, k, m or g)"
139
+complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: <number>[<unit>], where unit = b, k, m or g)"
140 140
 complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l name -d 'Assign a name to the container'
141 141
 complete -c docker -A -f -n '__fish_seen_subcommand_from create' -l net -d 'Set the Network mode for the container'
142 142
 complete -c docker -A -f -n '__fish_seen_subcommand_from create' -s P -l publish-all -d 'Publish all exposed ports to random ports on the host interfaces'
... ...
@@ -321,9 +321,9 @@ complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s i -l interactiv
321 321
 complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l ipc -d 'Default is to create a private IPC namespace (POSIX SysV IPC) for the container'
322 322
 complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l link -d 'Add link to another container in the form of <name|id>:alias'
323 323
 complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l lxc-conf -d '(lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"'
324
-complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s m -l memory -d 'Memory limit (format: <number><optional unit>, where unit = b, k, m or g)'
324
+complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s m -l memory -d 'Memory limit (format: <number>[<unit>], where unit = b, k, m or g)'
325 325
 complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l mac-address -d 'Container MAC address (e.g. 92:d0:c6:0a:29:33)'
326
-complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: <number><optional unit>, where unit = b, k, m or g)"
326
+complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l memory-swap -d "Total memory usage (memory + swap), set '-1' to disable swap (format: <number>[<unit>], where unit = b, k, m or g)"
327 327
 complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l name -d 'Assign a name to the container'
328 328
 complete -c docker -A -f -n '__fish_seen_subcommand_from run' -l net -d 'Set the Network mode for the container'
329 329
 complete -c docker -A -f -n '__fish_seen_subcommand_from run' -s P -l publish-all -d 'Publish all exposed ports to random ports on the host interfaces'
... ...
@@ -179,7 +179,7 @@ millions of trillions.
179 179
    (lxc exec-driver only) Add custom lxc options --lxc-conf="lxc.cgroup.cpuset.cpus = 0,1"
180 180
 
181 181
 **-m**, **--memory**=""
182
-   Memory limit (format: <number><optional unit>, where unit = b, k, m or g)
182
+   Memory limit (format: <number>[<unit>], where unit = b, k, m or g)
183 183
 
184 184
    Allows you to constrain the memory available to a container. If the host
185 185
 supports swap memory, then the **-m** memory setting can be larger than physical
... ...
@@ -193,7 +193,7 @@ system's page size (the value would be very large, that's millions of trillions)
193 193
 **--memory-swap**=""
194 194
    Total memory limit (memory + swap)
195 195
 
196
-   Set `-1` to disable swap (format: <number><optional unit>, where unit = b, k, m or g).
196
+   Set `-1` to disable swap (format: <number>[<unit>], where unit = b, k, m or g).
197 197
 This value should always larger than **-m**, so you should always use this with **-m**.
198 198
 
199 199
 **--memory-swappiness**=""
... ...
@@ -276,7 +276,7 @@ which interface and port to use.
276 276
   Logging driver specific options.
277 277
 
278 278
 **-m**, **--memory**=""
279
-   Memory limit (format: <number><optional unit>, where unit = b, k, m or g)
279
+   Memory limit (format: <number>[<unit>], where unit = b, k, m or g)
280 280
 
281 281
    Allows you to constrain the memory available to a container. If the host
282 282
 supports swap memory, then the **-m** memory setting can be larger than physical
... ...
@@ -287,7 +287,7 @@ system's page size (the value would be very large, that's millions of trillions)
287 287
 **--memory-swap**=""
288 288
    Total memory limit (memory + swap)
289 289
 
290
-   Set `-1` to disable swap (format: <number><optional unit>, where unit = b, k, m or g).
290
+   Set `-1` to disable swap (format: <number>[<unit>], where unit = b, k, m or g).
291 291
 This value should always larger than **-m**, so you should always use this with **-m**.
292 292
 
293 293
 **--mac-address**=""