miio icon indicating copy to clipboard operation
miio copied to clipboard

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

Open Charlizsz opened this issue 5 years ago • 2 comments

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 <idOrIp> Control a device by invoking the given method miio control <idOrIp> Control a device by invoking the [params..] given method miio discover Discover devices on the local network miio inspect <idOrIp> 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

Charlizsz avatar Jul 11 '18 05:07 Charlizsz

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

wonderbit avatar Jul 14 '19 17:07 wonderbit

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.

paulmunyao avatar Feb 07 '24 07:02 paulmunyao