Skip to content

Commit ae3da8c

Browse files
committed
Remove forward slash for command line options
1 parent 254d73e commit ae3da8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

source/cppfront.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ auto main(
6363
{
6464
if (
6565
arg.text.starts_with("-")
66-
|| arg.text.starts_with("/")
66+
|| (arg.text.starts_with("/") && arg.text.find('.') != std::string::npos)
6767
)
6868
{
6969
auto ambiguous = cmdline.flags_starting_with(arg.text.substr(1));

0 commit comments

Comments
 (0)