-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Fix styling of arguments #4022
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix styling of arguments #4022
Conversation
951d782 to
754d318
Compare
Signed-off-by: Ashly Mathew <ashlymathew93@gmail.com>
754d318 to
de9b47a
Compare
|
@kolyshkin Could you do a review? |
|
Looks like CI got stuck (probably because some changes were made); let me try a close/reopen to trigger it |
thaJeztah
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes LGTM, thanks!
| driver and "system.slice" for systemd cgroup driver. | ||
|
|
||
| **--config-file**="/etc/docker/daemon.json" | ||
| **--config-file**=*"/etc/docker/daemon.json"* |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- This is wrong to put a default value (like done here) or an example value in synopsis. The proper way would be to say something like
**--config-file**=*"path"*and add
Default is */etc/docker/daemon.json*.to the option description.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To explain the last part -- while a file name (such as /etc/docker/daemon.json) is a literal, the man page convention is to typeset it as italic.
| Enable debug mode. Default is false. | ||
|
|
||
| **--default-cgroupns-mode**="**host**|**private**" | ||
| **--default-cgroupns-mode**="*host*|*private*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Here, both host and private are literals, i.e. they should be used as-is. Therefore, those are typeset in bold and should not be changed.
OTOH, if that would be something like default-cgroup-mode=MODE, the MODE should be in italic, as it's a value to be substituted.
|
Opened #4215 to fix the issues from this PR (described above). |
Signed-off-by: Ashly Mathew ashlymathew93@gmail.com
- What I did
Small contribution to #923 - changing arguments of options to italics
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)