forked from jgrewe/fishbook
[server] and background stuff
This commit is contained in:
@@ -5,15 +5,13 @@ import argparse
|
||||
import fishbook_server.client as client
|
||||
|
||||
def run(arguments):
|
||||
client.run(arguments.host, arguments.port, arguments.action, arguments.value)
|
||||
client.run(arguments.host, arguments.port)
|
||||
|
||||
|
||||
def create_parser():
|
||||
parser = argparse.ArgumentParser(description="Run fishbook dataserver")
|
||||
parser.add_argument("-hs", "--host", type=str, default="", help="The host for which to listen. Use 127.0.0.1 for localhost or any other hosts simply leave it empty.")
|
||||
parser.add_argument("-pr", "--port", type=int, default=65432, help="The port on which the server should be listening which to listen. Default 9000.")
|
||||
parser.add_argument("-a", "--action", type=str, default="search", help="")
|
||||
parser.add_argument("-v", "--value", type=str, default="test", help="")
|
||||
return parser
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user