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. 10
      src/xdgmenumaker

10
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
@ -87,10 +87,10 @@ def usage():
print 'USAGE:', os.path.basename(sys.argv[0]), '[OPTIONS]' print 'USAGE:', os.path.basename(sys.argv[0]), '[OPTIONS]'
print print
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
print 'EXAMPLES:' print 'EXAMPLES:'

Loading…
Cancel
Save