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)
Fri, May 15, 3:23 PM
Unknown Object (File)
Fri, May 15, 5:14 AM
Unknown Object (File)
Fri, May 15, 5:13 AM
Unknown Object (File)
Thu, May 14, 4:45 PM
Unknown Object (File)
Thu, May 14, 3:11 PM
Unknown Object (File)
Thu, May 14, 2:15 PM
Unknown Object (File)
Thu, May 14, 5:33 AM
Unknown Object (File)
Wed, May 13, 9:40 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