Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wt19 opened this issue Dec 12, 2021 · 2 comments
Open

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

wt19 opened this issue Dec 12, 2021 · 2 comments

Comments

@wt19
Copy link

wt19 commented Dec 12, 2021

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
Copy link
Contributor

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
Copy link
Owner

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

./roomba.py -m disables map drawing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants