Page MenuHomeFreeBSD

bhyvectl: generate usage from options table
ClosedPublic

Authored by rob.norris_klarasystems.com on Apr 5 2024, 2:17 AM.
Tags
None
Referenced Files
F169070392: D44641.id136586.diff
Mon, Aug 31, 8:02 AM
F169048173: D44641.id.diff
Mon, Aug 31, 6:03 AM
Unknown Object (File)
Sun, Aug 30, 5:06 AM
Unknown Object (File)
Sun, Aug 30, 1:35 AM
Unknown Object (File)
Sat, Aug 29, 11:21 PM
Unknown Object (File)
Sat, Aug 29, 5:27 AM
Unknown Object (File)
Thu, Aug 27, 11:12 PM
Unknown Object (File)
Thu, Aug 27, 5:23 AM

Details

Summary

The usage text had fallen out of sync with the actually available
options. Rather than keep them in sync by hand, just generate usage from
the available options.

Signed-off-by: Rob Norris <robn@despairlabs.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 56919
Build 53807: arc lint + arc unit

Event Timeline

markj added a subscriber: markj.

Nice simplification, just one inline style nit.

usr.sbin/bhyvectl/bhyvectl.c
1447
This revision is now accepted and ready to land.Apr 5 2024, 11:51 AM

Fixing style nit; no space between function name and parens.

This revision now requires review to proceed.Apr 6 2024, 1:13 AM
This revision is now accepted and ready to land.Apr 8 2024, 12:52 PM
This revision was automatically updated to reflect the committed changes.