File: m2shpy

package info (click to toggle)
mongrel2 1.11.0-6
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,976 kB
  • ctags: 5,326
  • sloc: ansic: 38,934; python: 2,833; sql: 1,555; sh: 457; makefile: 358; asm: 189; yacc: 145; php: 73; awk: 28; sed: 5
file content (14 lines) | stat: -rw-r--r-- 364 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python

from mongrel2.config import args, commands
import sys

# some people just type these instinctively
if len(sys.argv) > 1:
    if sys.argv[1].endswith("-help"):
        sys.argv[1] = "help"
    elif sys.argv[1].endswith("-version"):
        sys.argv[1] = "version"

args.parse_and_run_command(sys.argv[1:], commands, default_command="shell")