Page MenuHomeFreeBSD

jls: minor simplification to arg handling
ClosedPublic

Authored by kevans on Jul 25 2025, 8:38 PM.
Tags
None
Referenced Files
F156505097: D51540.id.diff
Thu, May 14, 5:33 AM
F156469403: D51540.id159145.diff
Wed, May 13, 9:40 PM
F156408669: D51540.id159168.diff
Wed, May 13, 12:03 PM
Unknown Object (File)
Wed, May 13, 6:54 AM
Unknown Object (File)
Tue, May 12, 10:47 AM
Unknown Object (File)
Mon, May 11, 2:53 PM
Unknown Object (File)
Wed, May 6, 7:28 PM
Unknown Object (File)
Thu, Apr 30, 5:54 AM
Subscribers

Details

Summary

It's easier to reason about the state of argc/argv if we just augment
them by optind after our getopt() loop.

No functional change, but this sets the stage for another change to add
a -c mode to (c)heck for the existence of a jail quietly without
the caller having to worry about spurious output.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable