staticmethod (#232)
This commit is contained in:
parent
4abd0bd680
commit
e3cb0485ce
@ -19,7 +19,8 @@ class Config:
|
|||||||
) = self.arg_parse()
|
) = self.arg_parse()
|
||||||
self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config()
|
self.x_pad, self.x_query, self.x_center, self.x_max = self.device_config()
|
||||||
|
|
||||||
def arg_parse(self) -> tuple:
|
@staticmethod
|
||||||
|
def arg_parse() -> tuple:
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument("--port", type=int, default=7865, help="Listen port")
|
parser.add_argument("--port", type=int, default=7865, help="Listen port")
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
|
Loading…
Reference in New Issue
Block a user