aholstenson / miio

Control Mi Home devices, such as Mi Robot Vacuums, Mi Air Purifiers, Mi Smart Home Gateway (Aqara) and more
MIT License
1.85k stars 355 forks source link

Not enough non-option arguments: got 0, need at least 1 #167

Open Charlizsz opened 6 years ago

Charlizsz commented 6 years ago

When I input anything about miio, it would send me the error about this "Not enough non-option arguments: got 0, need at least 1"

miio

Commands: miio configure Control a device by invoking the given method miio control Control a device by invoking the [params..] given method miio discover Discover devices on the local network miio inspect Inspect a device miio protocol Inspect and test raw miIO-commands miio tokens Manage tokens of devices

Options: --help Show help [boolean] --version Show version number [boolean]

Not enough non-option arguments: got 0, need at least 1

wonderbit commented 5 years ago

I was getting the same error because I was doing "miio --discover" instead of "miio discover"… it's working now.

paulmunyao commented 5 months ago

If the problem appears in an angular application the problem is that you are running the wrong command.Open the package.json file and check the commands.