Skip to content

Commit

Permalink
Remove forward slash as command line switch (hsutter#1175)
Browse files Browse the repository at this point in the history
* Allow absolute filepath on command line

* Using common.h's `contains` until string.contains is widely supported

---------

Co-authored-by: Herb Sutter <[email protected]>
  • Loading branch information
sookach and hsutter authored Jul 22, 2024
1 parent 755fa6f commit 15f9be1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/cppfront.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ auto main(
{
if (
arg.text.starts_with("-")
|| arg.text.starts_with("/")
|| (arg.text.starts_with("/") && !contains(arg.text, '.'))
)
{
auto ambiguous = cmdline.flags_starting_with(arg.text.substr(1));
Expand Down

0 comments on commit 15f9be1

Please sign in to comment.