mirror of
https://github.com/arx-research/libhalo.git
synced 2026-01-09 13:18:04 -05:00
30 lines
695 B
JavaScript
30 lines
695 B
JavaScript
/**
|
|
* LibHaLo - Programmatically interact with HaLo tags from the web browser, mobile application or the desktop.
|
|
* Copyright by Arx Research, Inc., a Delaware corporation
|
|
* License: MIT
|
|
*/
|
|
|
|
import {ArgumentParser} from "argparse";
|
|
|
|
const parser = new ArgumentParser({
|
|
description: 'HaLo Gateway Server'
|
|
});
|
|
|
|
parser.add_argument("-l", "--listen-host", {
|
|
help: "IP where the server should bind",
|
|
default: "127.0.0.1",
|
|
dest: "listenHost"
|
|
});
|
|
parser.add_argument("-p", "--listen-port", {
|
|
help: "Port where the server should bind",
|
|
type: "int",
|
|
default: 32842,
|
|
dest: "listenPort"
|
|
});
|
|
|
|
function parseArgs() {
|
|
return parser.parse_args();
|
|
}
|
|
|
|
export {parseArgs};
|