You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When mispelling a flag to the compiler, it mistakes it with a file name, which generates a somewhat confusing error message:
$ jakt --cxx-compile-path /opt/bin/clang++-16 test.jakt
Extra unknown argument '/opt/bin/clang++-16', you can only pass one source file (was '--cxx-compile-path')
usage: jakt [cross] [-h] [OPTIONS] <filename>
Perhaps we should assume anything starting with - is an option, so that jakt can complain about non-existing options.
To keep supporting file names that may start with -, we could make use of a marker like -- to signal that flag-like arguments end, so that the next argument is interpreted as a file name, disregarding the - from the start.
The text was updated successfully, but these errors were encountered:
When mispelling a flag to the compiler, it mistakes it with a file name, which generates a somewhat confusing error message:
Perhaps we should assume anything starting with
-
is an option, so thatjakt
can complain about non-existing options.To keep supporting file names that may start with
-
, we could make use of a marker like--
to signal that flag-like arguments end, so that the next argument is interpreted as a file name, disregarding the-
from the start.The text was updated successfully, but these errors were encountered: