Arguments that specify private visibility, such as:
@Flag(help: ArgumentHelp(visibility: .private))
var hiddenFromHelp: Bool = false
show up in the man page generated by the generate-manual command:
If private visibility indicates that help should never be shown for that argument, it seems reasonable and desirable that it also not be visible in man pages.
ArgumentParser version: 1.5.0
Swift version: swift-driver version: 1.110 Apple Swift version 6.0 (swiftlang-6.0.0.4.52 clang-1600.0.21.1.3)
Checklist
Steps to Reproduce
- Define an argument with
private visibility, such as the hiddenFromHelp argument above
- Build the client executable at path
<executable>
- Run
swift run generate-manual <executable> --output-directory <outputdir>
Expected behavior
hiddenFromHelp should not be included in the man page generated at <outputdir>
Actual behavior
hiddenFromHelp is included in the man page generated at <outputdir>
Arguments that specify
privatevisibility, such as:show up in the man page generated by the
generate-manualcommand:If
privatevisibility indicates that help should never be shown for that argument, it seems reasonable and desirable that it also not be visible in man pages.ArgumentParser version:
1.5.0Swift version:
swift-driver version: 1.110 Apple Swift version 6.0 (swiftlang-6.0.0.4.52 clang-1600.0.21.1.3)Checklist
mainbranch of this packageSteps to Reproduce
privatevisibility, such as thehiddenFromHelpargument above<executable>swift run generate-manual <executable> --output-directory <outputdir>Expected behavior
hiddenFromHelpshould not be included in the man page generated at<outputdir>Actual behavior
hiddenFromHelpis included in the man page generated at<outputdir>