# Dump-help question

**URL:** <https://forums.swift.org/t/dump-help-question/74762>\
**Category:** ArgumentParser\
**Created:** [September 19, 2024, 10:26pm UTC](https://forums.swift.org/t/dump-help-question/74762 "2024-09-19T22:26:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Joseph\_Heck](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joseph_heck/32/22369_2.png) [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Post date:** [September 19, 2024, 10:26pm UTC](https://forums.swift.org/t/dump-help-question/74762/1 "2024-09-19T22:26:10Z")

</div>

I was recently digging the output generated by the --experimental-dump-help option, looking at the potential to use it to generate integrated DocC documentation for CLI executables (related [thread in DocC](https://forums.swift.org/t/pitch-discussion-docc-feature-discoverability-and-command-line-documentation/) about CLI documentation).

As I was looking through the content and the visibility controls, I noticed that a command can be marked as [hidden from display](https://github.com/apple/swift-argument-parser/blob/main/Sources/ArgumentParser/Parsable%20Types/CommandConfiguration.swift#L47), very much like Arguments. However, that data doesn't appear to be reflected as a property in [`CommandInfoV0`](https://github.com/apple/swift-argument-parser/blob/main/Sources/ArgumentParserToolInfo/ToolInfo.swift#L44) (the struct that's generated to reflect this information externally).

Is there any reason this additional property _shouldn't_ be included in the JSON/Struct that encodes the details for the help dump?

/cc @ronnqvist

---

<div class="post-metadata">

**Author:** ![rauhul](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/rauhul/32/35207_2.png) [@rauhul](https://forums.swift.org/u/rauhul)\
**Post date:** [September 20, 2024, 1:02am UTC](https://forums.swift.org/t/dump-help-question/74762/2 "2024-09-20T01:02:18Z")

</div>

No, that is an oversight and it should be added.

---

<div class="post-metadata">

**Author:** ![Joseph\_Heck](https://sea2.discourse-cdn.com/swift/user_avatar/forums.swift.org/joseph_heck/32/22369_2.png) [@Joseph\_Heck](https://forums.swift.org/u/Joseph_Heck)\
**Post date:** [September 20, 2024, 1:13am UTC](https://forums.swift.org/t/dump-help-question/74762/3 "2024-09-20T01:13:56Z")

</div>

Thanks!

I've opened [help-dump structures should reflect hidden attribute for commands as well as arguments · Issue #668 · apple/swift-argument-parser · GitHub](https://github.com/apple/swift-argument-parser/issues/668) to capture that, with the idea that I'll submit a PR to extend the data structure, and make corresponding updates to `generate-manual` shortly.
