Issue1223

Title Present Translator Options on the Website
Priority wish Status in-progress
Superseder Nosy List Claudia, florian, jendrik, malte, simon
Assigned To Keywords
Optional summary
PR: https://github.com/aibasel/downward/pull/298
Follow-up for driver options: issue1225

Created on 2026-07-22.10:32:38 by simon, last changed by Claudia.

Summary
PR: https://github.com/aibasel/downward/pull/298
Follow-up for driver options: issue1225
Messages
msg12105 (view) Author: Claudia Date: 2026-07-23.11:29:23
After discussing Malte's comments we decided to go with option B (to document how to set translator options from within the driver scrip).
msg12102 (view) Author: florian Date: 2026-07-22.12:18:25
Thanks for the review. I set up the pull request and undid the original merge under the [trivial] tag so we can merge it after handling those comments and with the correct issue number.
msg12101 (view) Author: malte Date: 2026-07-22.11:09:09
Looks great! I think there are still a few issues with this, mainly to do with the positional arguments to the translator script.

I've started writing it up, but it went longer and longer, so perhaps it's easier to discuss it in person, and I'll reduce this text here to a summary.


There are two ways a page like this can be designed:

A) to document how to call the translator stand-alone
B) to document how to set translator options from within the driver script

The page is currently called "translator usage", which suggests A, but the way it's described follows B more. I will assume that the intention was B. Different comments would apply from A. We could also do A and explain how to do B based on the documentation of A.

A and B are similar, but also different (for example regarding argument order, how to use --help, whether the domain file name is optional).

For the stand-alone translator package that we also discussed, we also want something like A, so perhaps we should also think in the discussion how we want to support that in the future.


The docs currently contain a bunch of things that lean into A rather than B, plus some other small things that perhaps would be good to change:

- The page title ("translator usage", parallel to "planner usage") suggests A, not B, also in the navigation bar.

- The page contains a usage string for using fast-downward.py to call the translator. In this context usage strings are meant to be comprehensive, but it isn't because one would often want driver options as well (time/memory limits). One way to address this, which would also address the points below regarding positional variables, is to do more of B rather than A and not include a comprehensive usage, only document the options. We could still include example invocations afterwards, as in the fast-downward.py docs.

- The positional arguments are described, but they are driver arguments, not translator options, and already described on the planner usage page and the help text of fast-downward.py.

- There is confusion between options and positional arguments; the positional arguments are described under "options". In the usual lingo in the argument parsing world, something like "domain" here is not an option, although it is an argument.

- The usage string uses the wrong positional argument names:
./fast-downward.py --translate [domain] problem [--translate-options OPTIONS]
But then the help text doesn't define "problem" and instead defines "task".

- preexisting issue: looks like the translator doesn't follow the same conventions as fast-downward.py for the positional arguments (lower-case vs. upper-case for the metavariable). I think the usual solution would be uppercase.

- The "--help" option behaves in an unusual way. The expectation should probably be that you don't need to specify PDDL files with "--translate-options --help", but you do when calling the translator through the driver script. I think this can trip people up and would be worth adding to examples or something.

- The documentation of "--help" ("print this help message and exit") isn't quite right because the translator prints a quite different usage string.

- I think it's a bit strange for us to document the translator options on the web page in this way, but not document fast-downward.py itself where we instead say "run ./fast-downward.py --help". Perhaps we should open a follow-up issue on this.
msg12100 (view) Author: simon Date: 2026-07-22.10:32:38
We want to present the translator options on the website

Related commit:
https://github.com/aibasel/downward/commit/ed3a8c096dc33e6aa98800708198c0b87ab2d681
History
Date User Action Args
2026-07-23 12:22:11Claudiasetsummary: PR: https://github.com/aibasel/downward/pull/298 todos: - Add examples to the end of the Translator Options page: disabling the invariant synthesis, running Fast Downward with lmcut and some translator options (mention here that the order of arguments matters), printing the translator help message with the driver script. - Mention in driver help message how to get the translator help message. - Find out the convention on formatting positional arguments and make the driver and translator help messages consistent using the same convention. - Create a follow-up issue for documenting the driver options on the website like we do here for the translator options. -> PR: https://github.com/aibasel/downward/pull/298 Follow-up for driver options: issue1225
2026-07-23 11:29:23Claudiasetmessages: + msg12105
summary: PR: https://github.com/aibasel/downward/pull/298 -> PR: https://github.com/aibasel/downward/pull/298 todos: - Add examples to the end of the Translator Options page: disabling the invariant synthesis, running Fast Downward with lmcut and some translator options (mention here that the order of arguments matters), printing the translator help message with the driver script. - Mention in driver help message how to get the translator help message. - Find out the convention on formatting positional arguments and make the driver and translator help messages consistent using the same convention. - Create a follow-up issue for documenting the driver options on the website like we do here for the translator options.
2026-07-22 12:18:25floriansetmessages: + msg12102
summary: PR: https://github.com/aibasel/downward/pull/298
2026-07-22 11:09:09maltesetmessages: + msg12101
2026-07-22 10:32:38simoncreate