Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-zherikov committed Dec 20, 2023
1 parent 01188fe commit 7388bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/argparse/api/subcommand.d
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ if(Commands.length > 0)
{
private alias DefaultCommands = Filter!(isDefaultCommand, Commands);

static assert(DefaultCommands.length <= 1, "Multiple default subcommands: "~DefaultCommands);
static assert(DefaultCommands.length <= 1, "Multiple default subcommands: "~DefaultCommands.stringof);

static if(DefaultCommands.length > 0)
package(argparse) alias DefaultCommand = RemoveDefaultAttribute!(DefaultCommands[0]);
Expand Down

0 comments on commit 7388bdf

Please sign in to comment.