=sys-apps/hdparm-7.5 and also =sys-apps/hdparm-7.3 doesn't work with one dash (-) and two dash (--) parameters used simultaneously. Example that fails with version 7.3 and 7.5 but works with 6.9-r1 and previous: hdparm -d1 --security-freeze /dev/hda This is problematic behavior when used such a combination in hdparm init script. Reproducible: Always
this is done on purpose in the code ... handle_standalone_longarg (char *name) { if (num_flags_processed) { if (verbose) fprintf(stderr, ...); usage_help(EINVAL); } you cant use some long args after an action flag (-d is the action flag in this case) if you still feel this is incorrect, please e-mail mlord@pobox.com about it
It is bug and due to reply from Mark Lord, it will be fixed in hdparm-7.6.