[PATCH 063/155] policycoreutils: semanage: show usage on -h or

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


This patch looks good to me. acked.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk45uSIACgkQrlYvE4MpobM8CQCeJjZgVWTIclUha7+/FTpPtlLp
5m4AnjTcsRTfAaEaajuAACWuQZgMHvYd
=MdpW
-----END PGP SIGNATURE-----
>From e12beba537e9f72a056aeef63a4a63d1619078e3 Mon Sep 17 00:00:00 2001
From: Eric Paris <eparis@xxxxxxxxxx>
Date: Mon, 18 Jul 2011 13:25:42 -0400
Subject: [PATCH 063/155] policycoreutils: semanage: show usage on -h or
 --help

Raise a more sensicle useage rather than value error on help request
from user.

Signed-off-by: Eric Paris <eparis@xxxxxxxxxx>
---
 policycoreutils/semanage/semanage |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/policycoreutils/semanage/semanage b/policycoreutils/semanage/semanage
index fa10be6..aa2eaa2 100644
--- a/policycoreutils/semanage/semanage
+++ b/policycoreutils/semanage/semanage
@@ -259,7 +259,7 @@ Object-specific Options (see above):
 				use_file = True
 
 			if o == "-h" or o == "--help":
-                               raise ValueError(_("%s bad option") % o)
+				raise usage()
 
 			if o == "-n" or o == "--noheading":
 				heading = False
-- 
1.7.6

Attachment: 0063-policycoreutils-semanage-show-usage-on-h-or-help.patch.sig
Description: PGP signature


[Index of Archives]     [Selinux Refpolicy]     [Linux SGX]     [Fedora Users]     [Fedora Desktop]     [Yosemite Photos]     [Yosemite Camping]     [Yosemite Campsites]     [KDE Users]     [Gnome Users]

  Powered by Linux