bees icon indicating copy to clipboard operation
bees copied to clipboard

Make exit status on help message success

Open Marcool04 opened this issue 2 years ago • 2 comments

Hi there,

First of all, thanks a lot for your work on this very helpful and powerful tool.

I was surprised today to note that bees exits with an error code, 1, when one does beesd --help. I believe standard behaviour (and logic?) is to exit with success in this case, since the user asked for a help message, and the program gave it, so everything was "successful", right?

If you disagree just feel free to close this. Best regards, Mark.

Marcool04 avatar Feb 07 '24 10:02 Marcool04

Except my two comments, LGTM, but please check that the beesd runner script still works correctly when using --help.

Just tested scripts/beesd (into which I had to hardcode the path to the rebuilt bees executable) and it seems to be ok. Is that what you meant? I don't see anywhere in scripts/beesd.in that refers to the exit code of the binary anyhow.

Marcool04 avatar Feb 07 '24 14:02 Marcool04

Just tested scripts/beesd (into which I had to hardcode the path to the rebuilt bees executable) and it seems to be ok. Is that what you meant? I don't see anywhere in scripts/beesd.in that refers to the exit code of the binary anyhow.

Yeah, I had the idea that it may exit on error and thus may depend on the exit code for help.

kakra avatar Feb 07 '24 16:02 kakra