"darktable-viewer --repeat" doesn't repeat pictures
The command line option "--repeat" seems to have no effect on the behaviour. This is independent from the "--random" parameter. ("--random" itself works without problems)
The code is not very readable though. Maybe introducing a second variable to save both parameter values would make it easier to spot bugs in the future.
btw the "--help" option is not very elaborate and a man page is missing. Thus I don't know if it maybe is just a layer 8 problem... :) I tried adding a number to the "--repeat" option but no luck either.