-
Notifications
You must be signed in to change notification settings - Fork 935
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
lxc manpage <target>
: Lots of go-md2man warnings
#7772
Comments
The issue looks similar to spf13/cobra#1137. That issue was closed by upstream as expected behavior, recommending a change in notation. |
Yeah, that's not really going to work for us as we have things like this:
So in the example above Removing the
Making it much harder to figure out what's the actual user input and what's needed, also making it inconsistent with args outside of optional blocks. Making things consistent would then look like:
Which is even more confusing to me. I'd certainly prefer for a fix in |
@stgraber |
Going through the linked issue in moby, they're using go-md2man directly rather than having spf13 spit out markdown which is then turned into a man page. LXD never directly imports go-md2man and so doesn't really have any control over that part so I'm not seeing any way for us to opt into the HTML entities support here. |
Required information
Issue description
I wanted to test generating man pages for the various
lxc
commands, as my distribution doesn't supply those, so I created a temporary directory and used thelxc manpage
command with that directory as target.Although this appeared to generate man pages, I received a couple of dozen warnings of the form:
I expected the process to complete without any warnings.
Steps to reproduce
mkdir /tmp/lxc-man
lxc
to generate man pages and store them in the temporary directory:lxc manpage /tmp/lxc-man
Information to attach
dmesg
)lxc info NAME --show-log
)lxc config show NAME --expanded
)lxc monitor
while reproducing the issue)The text was updated successfully, but these errors were encountered: