Skip to content
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

mangen command #972

Open
ken-matsui opened this issue Aug 12, 2024 · 0 comments
Open

mangen command #972

ken-matsui opened this issue Aug 12, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@ken-matsui
Copy link
Member

It would be great if we could generate man files (ROFF) using and modifying CLI classes, similar to clap_mangen. This command is intended for use by package managers, such as Homebrew, during the installation of Poac, not for typical end users. Therefore, it would be preferable to hide this command by default, like we do for some options.

poac/src/main.cc

Lines 22 to 25 in 7c4f62e

.addOpt(Opt{ "-vv" }
.setDesc("Use very verbose output")
.setGlobal(true)
.setHidden(true))

poac/src/Cli.hpp

Lines 61 to 64 in 7c4f62e

constexpr Derived& setHidden(const bool isHidden) noexcept {
this->isHidden = isHidden;
return static_cast<Derived&>(*this);
}

@ken-matsui ken-matsui added the enhancement New feature or request label Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant