这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@joliv
Copy link
Contributor

@joliv joliv commented Jan 15, 2015

As much as I love updating the man pages for every new version, I guess writing the man pages automatically would be a bit easier :)

The only difference is that help2man won't underline/italicize the command args, but I never cared much for that anyhow.

New man pages!

EDIT: It uses help2man, documented here.

@joliv joliv mentioned this pull request Jan 15, 2015
@josegonzalez
Copy link
Member

Fancy. Would also get the output of custom plugins people install. I'll test this out later today.

@joliv
Copy link
Contributor Author

joliv commented Jan 15, 2015

Ah, it is currently only generated during bootstrap, so it won't list the help for custom plugins that are installed after that script is run. It could easily be generated each time plugins-install is run, however, with a little addition here.

Makes it easier to be parsed by `help2man`
@joliv
Copy link
Contributor Author

joliv commented Jan 15, 2015

That header should read "OPTIONS" instead of "DESCRIPTION," so I've added an "Options:" header to the help text to get the correct header generated.

@josegonzalez
Copy link
Member

Fine with me. Merging. I'll be sure to run this before every release.

josegonzalez added a commit that referenced this pull request Jan 16, 2015
Use help2man to automatically generate man pages
@josegonzalez josegonzalez merged commit 6b80d1e into dokku:master Jan 16, 2015
@joliv
Copy link
Contributor Author

joliv commented Jan 17, 2015

@josegonzalez No need, it generates it anew with each installation during execution of bootstrap.sh.

@michaelshobbs
Copy link
Member

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants