Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 77f0a8db authored by Shao-Chuan Lee's avatar Shao-Chuan Lee
Browse files

Improve arg parsing for `cmd power set-wakelock`

- Make `-d` actually optional and reject unknown options
- Make wakelock type required instead of causing NPE

Bug: 435557564
Test: cmd power set-wakelock acquire PARTIAL_WAKE_LOCK
Test: cmd power set-wakelock acquire -d 0 PARTIAL_WAKE_LOCK
Flag: EXEMPT shell command only
Change-Id: I62f8b9db34f7d74e3453eaf8db63c7885c2c84f4
parent 5af1da80
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment