HomeFreeBSD

Fix arcstat.py handling of unsupported options

Description

Fix arcstat.py handling of unsupported options

This change allows the arcstat.py script to handle unsupported options
gracefully and print both error and usage messages when one such option
is provided.

Reviewed-by: Giuseppe Di Natale <guss80@gmail.com>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #7799

Details

Provenance
LOLi <loli10K@users.noreply.github.com>Authored on Aug 18 2018, 8:10 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 18 2018, 8:10 PM
Parents
rG802715b74a23: ZTS: Fix reservation_001_pos
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG1f87313ac830: Fix arcstat.py handling of unsupported options (authored by LOLi <loli10K@users.noreply.github.com>).Aug 18 2018, 8:10 PM