Skip to content

Stricter command line parsing #56294

Open
@LilithHafner

Description

@LilithHafner

It would be nice if = was required instead of optional for flags with arguments. This would make the following behavior error:

x@x:~/test$ julia --trace-compile --banner=no
               _
   _       _ _(_)_     |  Documentation: https://docs.julialang.org
  (_)     | (_) (_)    |
   _ _   _| |_  __ _   |  Type "?" for help, "]?" for Pkg help.
  | | | | | | |/ _` |  |
  | | |_| | | | (_| |  |  Version 1.11.1 (2024-10-16)
 _/ |\__'_|_|_|\__'_|  |  Official https://julialang.org/ release
|__/                   |

julia> 
x@x:~/test$ ls
'--banner=no'
x@x:~/test$ cat -- --banner=no
precompile(Tuple{typeof(Base.print), Base.TTY, String})

Motivated by #56285

Metadata

Metadata

Assignees

No one assigned

    Labels

    breakingThis change will break code

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions