Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 111276 - localepurge ignores "--help" on command line
Summary: localepurge ignores "--help" on command line
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: José Alberto Suárez López (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-02 10:52 UTC by Gentoo User
Modified: 2005-12-27 01:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gentoo User 2005-11-02 10:52:36 UTC
app-admin/localepurge will remove files without confirmation when run with
"--help".  The copyright file claims that the code is copyright under the GNU
Public License.  According to the GNU standard for command line interfaces
(http://www.gnu.org/prep/standards/html_node/Command_002dLine-Interfaces.html),
all programs should provide at least --help and --verison.  I believe that any
program that may make irreversable changes to your system should honor these
flags, and even more appropriately, provide a confirmation prompt ("Are you sure?")

Reproducible: Always
Steps to Reproduce:
1. execute "localepurge --help".  Watch files be deleted.
Actual Results:  
No help displayed.  Files deleted.

Expected Results:  
Display usage/help message.

Version: app-admin/localepurge-0.2-r1
Comment 1 José Alberto Suárez López (RETIRED) gentoo-dev 2005-12-27 01:22:47 UTC
if you execute "localepurge" without or with any parameter you will prompt with a message about you need to configure "/etc/locale.nopurge" the isntruccions are in this file. If you dont edit this file localepurge cannot delete files :)
So i will add a --help(-h), --version for you.

regards
Comment 2 José Alberto Suárez López (RETIRED) gentoo-dev 2005-12-27 01:51:40 UTC
now in cvs :)