added entry points

This commit is contained in:
2018-11-12 13:48:43 +01:00
parent b9beddd4a4
commit 5c55770b03
3 changed files with 24 additions and 11 deletions

View File

@@ -251,8 +251,6 @@ class NaoMover(object):
if __name__ == '__main__':
cfg = read_config()
mover = NaoMover(cfg['ip'], cfg['port'])
parser = argparse.ArgumentParser()
actions = parser.add_mutually_exclusive_group()
actions.add_argument("-s", "--stand", action="store_true",
@@ -268,6 +266,9 @@ if __name__ == '__main__':
args = parser.parse_args()
cfg = read_config()
mover = NaoMover(cfg['ip'], cfg['port'])
if args.stand:
mover.stand_up()