sesearch: Fix xperm options for consistency.

The options should have been like --allowxperm but were like --allowx. Fix
to be consistent with sediff, which has these options.

Fortunately argparse recognizes abbreviations of long options, so anyone
that started using, --allowx, for example, can still use that.
This commit is contained in:
Chris PeBenito 2016-05-12 10:07:04 -04:00
parent 0ca66d2302
commit 38cd43c80b

View File

@ -37,25 +37,25 @@ rtypes.add_argument("-A", action="store_true", help="Search allow and allowxperm
rtypes.add_argument("--allow", action="append_const",
const="allow", dest="tertypes",
help="Search allow rules.")
rtypes.add_argument("--allowx", action="append_const",
rtypes.add_argument("--allowxperm", action="append_const",
const="allowxperm", dest="tertypes",
help="Search allowxperm rules.")
rtypes.add_argument("--auditallow", action="append_const",
const="auditallow", dest="tertypes",
help="Search auditallow rules.")
rtypes.add_argument("--auditallowx", action="append_const",
rtypes.add_argument("--auditallowxperm", action="append_const",
const="auditallowxperm", dest="tertypes",
help="Search auditallowxperm rules.")
rtypes.add_argument("--dontaudit", action="append_const",
const="dontaudit", dest="tertypes",
help="Search dontaudit rules.")
rtypes.add_argument("--dontauditx", action="append_const",
rtypes.add_argument("--dontauditxperm", action="append_const",
const="dontauditxperm", dest="tertypes",
help="Search dontauditxperm rules.")
rtypes.add_argument("--neverallow", action="append_const",
const="neverallow", dest="tertypes",
help="Search neverallow rules.")
rtypes.add_argument("--neverallowx", action="append_const",
rtypes.add_argument("--neverallowxperm", action="append_const",
const="neverallowxperm", dest="tertypes",
help="Search neverallowxperm rules.")
rtypes.add_argument("-T", "--type_trans", action="append_const",