-
Notifications
You must be signed in to change notification settings - Fork 2
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 arguments #12
Comments
This has been fixed; sort() in py-hostlist now has a command line argument "S" to maintain consistency with lua-hostlist. |
We are still missing: |
Do you happen to know the function of |
Also, I'd love to get your opinion on this, but I am sort of hesitant to implement a |
Hmmm, I'm not sure why quiet would be used. The help text "Quiet output (exit non-zero if empty hostlist)." implies that if a hostlist is empty then exit with 0... otherwise exit with non-zero or 1. Using it on quartz, it seems that -q just suppresses the output and makes it return 0 no matter what. Maybe @regier1 has some insight? |
As for filter, maybe @becker33 has some insight about |
I think this is just confusing wording.
Should really be something like (but possibly more than just)
That said, I have yet to find any error output; just nonzero exit codes. I think some historical applications would interpret "-q" to suppress exit codes and stdout/stderr but I have no idea whether this was a factor in the lua-hostlist wording. |
FWIW, I think the filter option does not need to make any promises that it cannot execute dangerous code; however, I think this option is unlikely to be used (at least right away) and will be very difficult to unit-test; besides, if the idea is to map python code then you have to deal with the fact that python is not designed to inline cleanly. It seems to me more useful to have a similar option output its data in a python-friendly format, like json or some kind of pickled dictionary, for ingestion by another program, but I think that's another angle on which @becker33 could offer some insight. |
The conclusion of discussions with Phil and Greg: Do not implement |
The original Lua hostlist has a slightly different set of command line arguments. This is taken from the help text on quartz (
hostlist -h
):Note that capital S is sort, lowercase s is size.
We should either maintain identical commands as lua-hostlist or clearly document where py-hostlist is different.
The text was updated successfully, but these errors were encountered: