Bug 1969825

Summary: groupdel: unrecognized option '--force' ; but -f works
Product: Red Hat Enterprise Linux 9 Reporter: Petr Sklenar <psklenar>
Component: shadow-utilsAssignee: Iker Pedrosa <ipedrosa>
Status: CLOSED CURRENTRELEASE QA Contact: Anuj Borah <aborah>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 9.0CC: aborah, aboscatt, dlavu, pbrezina
Target Milestone: betaKeywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: sync-to-jira
Fixed In Version: shadow-utils-4.9-1.el9 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-12-07 21:52:33 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1989556    
Bug Blocks:    

Description Petr Sklenar 2021-06-09 09:40:35 UTC
Description of problem:
--force is unknown option but -f works

Version-Release number of selected component (if applicable):
shadow-utils-4.8.1-8.el9.x86_64

How reproducible:
always

Steps to Reproduce:
1. yum install dhcp-server
2. groupdel  --force dhcpd
3.

Actual results:
[root@ci-vm-10-0-139-212 ~]# groupdel  --force dhcpd
groupdel: unrecognized option '--force'
Usage: groupdel [options] GROUP

Options:
  -h, --help                    display this help message and exit
  -R, --root CHROOT_DIR         directory to chroot into
  -P, --prefix PREFIX_DIR       prefix directory where are located the /etc/* files
  -f, --force                   delete group even if it is the primary group of a user

[root@ci-vm-10-0-139-212 ~]# groupdel  -f dhcpd

### this works


Expected results:
--force is the same as -f

Additional info:

Comment 1 Iker Pedrosa 2021-06-09 10:22:46 UTC
Already fixed upstream:
* master
    bd4dc81a82f21f699404f0834e30bef530c57528 - add parsing support for advertised force long opt