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)
Thu, Aug 27, 11:42 PM
Unknown Object (File)
Sun, Aug 23, 12:03 AM
Unknown Object (File)
Sat, Aug 22, 5:25 PM
Unknown Object (File)
Wed, Aug 19, 5:07 PM
Unknown Object (File)
Wed, Aug 12, 12:37 PM
Unknown Object (File)
Wed, Aug 12, 12:36 PM
Unknown Object (File)
Wed, Aug 12, 12:12 PM
Unknown Object (File)
Sun, Aug 9, 7:07 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