Skip to content
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

Command line interfaces #96

Open
willow-ahrens opened this issue May 3, 2024 · 9 comments
Open

Command line interfaces #96

willow-ahrens opened this issue May 3, 2024 · 9 comments

Comments

@willow-ahrens
Copy link

It would be really helpful to have a section on command line tools, I know that there are:
https://github.com/carlobaldassi/ArgParse.jl
https://github.com/comonicon/Comonicon.jl
https://github.com/zachmatson/ArgMacros.jl

There's a blog post here:
https://work.sparktseung.com/pages/2022-01-02-Julia-Argparse/

There's the related issue of precompiling the CLI:
https://discourse.julialang.org/t/how-to-packagecompile-argparse/31994/6
https://comonicon.org/stable/project/#Enable-System-Image

I was somewhat bewildered by this ecosystem, so I came to this website hoping for an opinionated answer.

@willow-ahrens
Copy link
Author

@gdalle
Copy link
Collaborator

gdalle commented May 3, 2024

A PR would be welcome, but I'm not sure which page this belongs to? Perhaps the time of the fourth page has arrived?

@willow-ahrens
Copy link
Author

willow-ahrens commented May 4, 2024

Maybe it's worth it to have a page on deployment, including packagcompiler, compiling apps, and argument parsing.

@willow-ahrens
Copy link
Author

@willow-ahrens
Copy link
Author

@kescobo
Copy link

kescobo commented Oct 18, 2024

+1 for this suggestion. I'm just getting back into this again after a couple of years, and "bewildering" is definitely the right adjective. Note also the new (@main)(ARGS) entrypoint macro, and upcoming juliac, and it gets even worse

@willow-ahrens
Copy link
Author

I suppose I can add my 2 cents here now: After considering all of these in a team where many developers are new to julia programming, I ultimately decided that docopt was the easiest to explain and use. Many of the other interfaces are very "magic", and use advanced features like macros or modules. I would have liked to use https://github.com/kmsquire/ArgParse2.jl because it is simple and many programmers are familiar with python's argparse, but the code is not feature complete.

@adrhill
Copy link
Collaborator

adrhill commented Oct 18, 2024

Maybe it's worth it to have a page on deployment, including packagcompiler, compiling apps, and argument parsing.

This makes sense to me, a page for anything related to running Julia outside of the interpreter / REPL session. While we're at it, some pointers on running Julia jobs on common compute cluster environments would be useful as well.

@gdalle
Copy link
Collaborator

gdalle commented Oct 18, 2024

I have never used any of these tools so I don't feel very comfortable writing such a page but I'll happily review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants