NickWaterton / Roomba980-Python

Python program and library to control iRobot Roomba 980 Vacuum Cleaner
MIT License
361 stars 103 forks source link

argument -m (--drawmap) not working #99

Open wt19 opened 2 years ago

wt19 commented 2 years ago

README mentions the argument -m (--drawmap) but this seems to be not available.

./roomba.py -m False
usage: roomba.py [-h] [-f CONFIGFILE] [-n ROOMBA_NAME] [-t TOPIC] [-T BROKER_FEEDBACK] [-C BROKER_COMMAND] [-S BROKER_SETTING] [-b BROKER] [-p PORT] [-U USER] [-P BROKER_PASSWORD] [-R ROOMBA_IP]
                 [-u BLID] [-w PASSWORD] [-wp WEBPORT] [-i INDENT] [-l LOG] [-e] [-D] [-r] [-j] [-m] [-M MAPPATH] [-sq MAX_SQFT] [-s MAPSIZE] [-fp FLOORPLAN] [-I ICONPATH] [-o] [-x EXCLUDE] [--version]
roomba.py: error: unrecognized arguments: False

same if I use --drawmap

JimmyTournemaine commented 2 years ago

I had the same problem, but in fact the argument purpose is to disable maps :

parser.add_argument(
        '-m', '--drawmap',
        action='store_false',
        default = True,
        help='Draw Roomba cleaning map (default: %(default)s)')

Just remove the parameter to enable maps drawing (it is the default behavior).

NickWaterton commented 2 years ago

-m is a toggle, no need for True or False.

./roomba.py -m disables map drawing.