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

Commit 1cf2557e authored by Evan Laird's avatar Evan Laird
Browse files

[cli] allow for an empty arg list if nothing is required

Before, we treated an empty arg list as an error. I don't think this is
necessary though. We can only invalidate an empty arg list if there are
non-optional parsers attached.

This allows for a completely optional command / subcommand structure
that still calls `execute()` when given the empty arg list.

Test: ParseableCommandTest
Fixes: 384947066
Flag: EXEMPT bugfix
Change-Id: I908c63bae089373f7b2181c0caae23eaa5f6022b
parent 950a47ab
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