OFS / opae-sdk

Open Programmable Acceleration Engine
https://ofs.github.io
BSD 3-Clause "New" or "Revised" License
259 stars 82 forks source link

Update: use argparse subparsers in opae.io #3023

Closed tswhison closed 1 year ago

tswhison commented 1 year ago

Description

Use argparse subparsers instead of parse_known_args(), so that the help information for sub-options can be auto-generated.

Bump revision to 1.0.0 - in order to run a script, the new 'script' sub-option is required: Before the change: opae.io do_something.py a b c As of the change: opae.io script do_something.py a b c The change is required due to the nature of argparse subparsers.

Collateral (docs, reports, design examples, case IDs):

Tests added:

Tests run:

Manual verification of all opae.io commands.