Skip to content
Commit 63b5b176 authored by Ryan Roberts's avatar Ryan Roberts
Browse files

cli: Rework interface so noun params are after verb



Change format from:
  fastpath [global opts] <noun> [noun opts] <verb> [verb opts]

to:
  fastpath [global opts] <noun> <verb> [noun and verb opts]

This allows us to more consistently use positional arguments (e.g. host
for sut noun, plan fil for plan noun, etc) and generally makes the
command simpler for humans to parse.

The noun still have one option; --help.

Implement by passing an add_noun_args() function from the noun's
add_parser() to the verb's add_parser().

Signed-off-by: Ryan Roberts's avatarRyan Roberts <ryan.roberts@arm.com>
parent 80c4cfbd
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment