You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was playing with rust/clap and one feature I really liked there was, that you can use doc-comments as an alternative to annotations to document flags/commands...
Not sure that its possible to get to the doc-comments in dlang though (I found an old issue: dlang/dmd#6872 where one of the usecases was especially commandline help generation).
The text was updated successfully, but these errors were encountered:
it would perhaps be interesting to be able to write
/// test description
@(NamedArgument(["aFlag"]))
bool aFlag;
if both variants are there, then the explicit description should win.
Unfortunately I think there is no way to get to the /// information at compile time.
I was playing with rust/clap and one feature I really liked there was, that you can use doc-comments as an alternative to annotations to document flags/commands...
Not sure that its possible to get to the doc-comments in dlang though (I found an old issue: dlang/dmd#6872 where one of the usecases was especially commandline help generation).
The text was updated successfully, but these errors were encountered: