-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
Changing order of parameters of julia CLI shouldn't change behavior #28643
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
This is to pass arguments into the julia program
|
The problem here is that there is 2 kind of arguments positional arguments and optional arguments. The position of an optional argument shouldn't affect behavior of a CLI. In the first case |
I know Python and Julia are differents but
import click
@click.command()
@click.argument('file')
@click.option('--depwarn', default='warn')
def main(file, depwarn):
print("hello with %s %s" % (file, depwarn))
if __name__ == '__main__':
main()
Order of an optional doesn't affect behavior of this CLI |
What you did in the original post was the same as
vs
|
Ok in one case it's arguments of python cli (or julia cli) and in the other case it's arguments of the Python/Julia script. |
Thanks @KristofferC |
Hello,
Following JuliaDocs/Documenter.jl#790 (comment) I noticed that
but
Changing order of parameters of julia CLI shouldn't change behavior
Kind regards
The text was updated successfully, but these errors were encountered: