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, Nov 18, 3:08 AM
Unknown Object (File)
Wed, Nov 12, 7:41 AM
Unknown Object (File)
Tue, Nov 11, 5:28 AM
Unknown Object (File)
Sat, Nov 8, 1:15 AM
Unknown Object (File)
Sat, Oct 25, 3:58 PM
Unknown Object (File)
Fri, Oct 24, 5:08 PM
Unknown Object (File)
Oct 11 2025, 7:37 AM
Unknown Object (File)
Oct 11 2025, 7:37 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