Skip to content

Commit

Permalink
Make members private (#167)
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-zherikov authored Jul 27, 2024
1 parent 63874b2 commit 3c5ce01
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions source/argparse/internal/parser.d
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,12 @@ unittest
}

///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
struct Unknown {

private struct Unknown {
string value;
}
struct Argument {

private struct Argument {
size_t index;
const(ArgumentInfo)* info;
Result delegate() parse;
Expand All @@ -99,11 +101,12 @@ struct Argument {
complete = () => r.arg.complete(r.cmdStack, name, values);
}
}
struct SubCommand {

private struct SubCommand {
Command delegate() cmdInit;
}

alias Entry = SumType!(Unknown, Argument, SubCommand);
private alias Entry = SumType!(Unknown, Argument, SubCommand);

private Entry getNextEntry(bool bundling)(Config config, ref string[] args,
FindResult delegate(bool) findPositionalArg,
Expand Down

0 comments on commit 3c5ce01

Please sign in to comment.