Merge pull request #118 from darealshinji/manpage

add a help command line option and a manpage
This commit is contained in:
Clement Lefebvre 2015-02-24 13:17:57 +00:00
commit fba603bc63
2 changed files with 21 additions and 1 deletions

View File

@ -3,7 +3,12 @@
import sys, os import sys, os
if len(sys.argv) > 1: 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")
os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.places") os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.places")
os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.applications") os.system("gsettings reset-recursively com.linuxmint.mintmenu.plugins.applications")

View File

@ -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).