dstep v1.0.3 (2021-07-31T06:50:08Z)
Home
Dub
Repo
makeGetOptArgs.expand
dstep
Configuration
makeGetOptArgs
Undocumented in source.
template
makeGetOptArgs
(alias config)
template
expand (
alias
spelling
) {
alias
member
=
Alias
!(
__traits
(
getMember
,
config
,
spelling
))
;
static if
(
__traits(compiles, &__traits(getMember, config, spelling)) && __traits(getAttributes, member).length == 2
)
auto
ptr
();
static if
(
__traits(compiles, &__traits(getMember, config, spelling)) && __traits(getAttributes, member).length == 2
)
auto
formatHelp
(string help);
alias
expand
=
AliasSeq
!(
__traits
(
getAttributes
,
__traits
(
getMember
,
config
,
spelling
))[
0
],
formatHelp
!
spelling
(
__traits
(
getAttributes
,
__traits
(
getMember
,
config
,
spelling
))[
1
]),
ptr
)
;
alias
expand
=
AliasSeq
!()
;
}
Members
Aliases
expand
alias
expand
=
AliasSeq
!(
__traits
(
getAttributes
,
__traits
(
getMember
,
config
,
spelling
))[
0
],
formatHelp
!
spelling
(
__traits
(
getAttributes
,
__traits
(
getMember
,
config
,
spelling
))[
1
]),
ptr
)
Undocumented in source.
expand
alias
expand
=
AliasSeq
!()
Undocumented in source.
member
alias
member
=
Alias
!(
__traits
(
getMember
,
config
,
spelling
))
Undocumented in source.
Functions
formatHelp
auto
formatHelp
(string help)
Undocumented in source. Be warned that the author may not have intended to support it.
ptr
auto
ptr
()
Undocumented in source. Be warned that the author may not have intended to support it.
Meta
Source
See Implementation
dstep
Configuration
makeGetOptArgs
aliases
makeGetOptArgs
templates
expand