Page MenuHomeFreeBSD

jls: minor simplification to arg handling
ClosedPublic

Authored by kevans on Jul 25 2025, 8:38 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Aug 4, 7:56 AM
Unknown Object (File)
Mon, Aug 3, 9:51 PM
Unknown Object (File)
Mon, Aug 3, 3:01 AM
Unknown Object (File)
Thu, Jul 30, 11:53 AM
Unknown Object (File)
Thu, Jul 30, 7:16 AM
Unknown Object (File)
Tue, Jul 28, 5:29 PM
Unknown Object (File)
Thu, Jul 23, 4:34 AM
Unknown Object (File)
Mon, Jul 20, 4:05 PM
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