Browse Source

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

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

4
src/xdgmenumaker

@ -65,7 +65,7 @@ def main(argv):
sys.exit(0)
elif opt in ("-i", "--icons"):
seticon = True
elif opt in ("--no-submenu"):
elif opt in ("-n", "--no-submenu"):
submenu = False
elif opt in ("-f", "--format"):
desktop = arg
@ -89,7 +89,7 @@ def usage():
print 'OPTIONS:'
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 ' --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 ' You have to specify the output format using the -f switch.'
print

Loading…
Cancel
Save