fix(cli): clarify password requirement for -p option

Updated CLI help and prompt message to show that -p/--password requires a password.
If no password is provided, the user will be prompted. Improves usability and avoids confusion.
This commit is contained in:
Cristian Cezar Moisés 2026-03-24 19:28:21 -03:00
commit d0dd63370c

View file

@ -160,7 +160,7 @@ int main(int argc, char **argv) {
ai++;
}
if (argc-ai<2) {
fprintf(stderr,"Error: compress requires <output.zupt> <files/dirs...>\n"); return 1;
fprintf(stderr,"-p, --password <PW> Encrypt with AES-256 (prompted if empty)\n"); return 1;
}
const char *output = argv[ai++];