From c4bb51d0db8e4dd72a6a0683406eec454b554a74 Mon Sep 17 00:00:00 2001 From: darealshinji Date: Sun, 30 Nov 2014 13:36:56 +0100 Subject: [PATCH 1/2] add a help command line option --- usr/bin/mintmenu | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/usr/bin/mintmenu b/usr/bin/mintmenu index 81d7a0a..95ec494 100755 --- a/usr/bin/mintmenu +++ b/usr/bin/mintmenu @@ -3,7 +3,12 @@ import sys, os if len(sys.argv) > 1: - if (sys.argv[1] in ["clean", "clear", "reset", "--clean", "--clear", "--reset"]): + if (sys.argv[1] in ["help", "h", "-?", "--help", "-h", "?"]): + print "mintMenu - the advanced MATE menu\n" + print "options:" + print " [--]help, [-]h Display this help." + print " [--]clean, [--]clear, [--]reset Restore settings to default.\n" + elif (sys.argv[1] in ["clean", "clear", "reset", "--clean", "--clear", "--reset"]): os.system("gsettings reset-recursively com.linuxmint.mintmenu") os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.places") os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.applications") From abb2d6b74b55cf0b2890bbf988a9fcd82db33eda Mon Sep 17 00:00:00 2001 From: darealshinji Date: Sun, 30 Nov 2014 13:37:33 +0100 Subject: [PATCH 2/2] install a manpage --- usr/share/man/man1/mintmenu.1 | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 usr/share/man/man1/mintmenu.1 diff --git a/usr/share/man/man1/mintmenu.1 b/usr/share/man/man1/mintmenu.1 new file mode 100644 index 0000000..7984c56 --- /dev/null +++ b/usr/share/man/man1/mintmenu.1 @@ -0,0 +1,15 @@ +.TH MINTMENU 1 "" "" +.SH NAME +mintMenu \- advanced MATE menu +.SH SYNOPSIS +.B mintmenu \fR[option] +.SH DESCRIPTION +mintMenu is one of the most advanced menus under Linux. +It supports filtering, favorites, easy\-uninstallation, autosession, and many other features. +.SH OPTIONS +.TP +.B [\-\-]help\fR,\fB [\-]h\fR,\fB [\-]? +Display command line options. +.TP +.B [\-\-]clean\fR,\fB [\-\-]clear\fR,\fB [\-\-]reset +Restore the mintMenu settings to default by deleting the settings file (\fI~/.linuxmint/mintMenu\fR).