src/eric7/eric7_server.py

branch
eric7
changeset 11033
6b197c3389f7
parent 10778
a3fe23f8d0ba
child 11090
f5f5f5803935
equal deleted inserted replaced
11032:84a66daa5e34 11033:6b197c3389f7
60 "--version", 60 "--version",
61 action="version", 61 action="version",
62 version="%(prog)s {0}".format(Version), 62 version="%(prog)s {0}".format(Version),
63 help="Show version information and exit.", 63 help="Show version information and exit.",
64 ) 64 )
65 parser.add_argument(
66 "client_id",
67 nargs="?",
68 default="",
69 help="ID string to check, if received messages have been sent by a"
70 " valid eric IDE (default empty)",
71 )
65 72
66 return parser 73 return parser
67 74
68 75
69 def main(): 76 def main():
71 Main entry point into the application. 78 Main entry point into the application.
72 """ 79 """
73 parser = createArgumentParser() 80 parser = createArgumentParser()
74 args = parser.parse_args() 81 args = parser.parse_args()
75 82
76 server = EricServer(port=args.port, useIPv6=args.with_ipv6) 83 if not args.client_id:
84 print(
85 "You should consider to add a client ID string in order to allow\n"
86 "the eric-ide server to check, if received messages have been sent\n"
87 "by a valid eric IDE.\n"
88 )
89
90 server = EricServer(port=args.port, useIPv6=args.with_ipv6, clientId=args.client_id)
77 ok = server.run() 91 ok = server.run()
78 92
79 sys.exit(0 if ok else 1) 93 sys.exit(0 if ok else 1)
80 94
81 95

eric ide

mercurial