Browse Source

Add a short option (-n) for the --no-submenu long option

pull/1/merge
George Vlahavas 12 years ago
parent
commit
12d79918d3
  1. 4
      src/xdgmenumaker

4
src/xdgmenumaker

@ -65,7 +65,7 @@ def main(argv):
sys.exit(0) sys.exit(0)
elif opt in ("-i", "--icons"): elif opt in ("-i", "--icons"):
seticon = True seticon = True
elif opt in ("--no-submenu"): elif opt in ("-n", "--no-submenu"):
submenu = False submenu = False
elif opt in ("-f", "--format"): elif opt in ("-f", "--format"):
desktop = arg desktop = arg
@ -89,7 +89,7 @@ def usage():
print 'OPTIONS:' print 'OPTIONS:'
print ' -f, --format the output format to use. Valid options are fluxbox, icewm and windowmaker' print ' -f, --format the output format to use. Valid options are fluxbox, icewm and windowmaker'
print ' -i, --icons enable support for icons in the menus. Only works with fluxbox, icewm' print ' -i, --icons enable support for icons in the menus. Only works with fluxbox, icewm'
print ' --no-submenu do not create a submenu. Only works with fluxbox, icewm' print ' -n, --no-submenu do not create a submenu. Only works with fluxbox, icewm'
print ' -h, --help show this help message' print ' -h, --help show this help message'
print ' You have to specify the output format using the -f switch.' print ' You have to specify the output format using the -f switch.'
print print

Loading…
Cancel
Save