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)
Sun, Feb 8, 3:42 AM
Unknown Object (File)
Sat, Feb 7, 11:24 PM
Unknown Object (File)
Mon, Feb 2, 3:44 AM
Unknown Object (File)
Mon, Feb 2, 12:11 AM
Unknown Object (File)
Sat, Jan 31, 2:17 AM
Unknown Object (File)
Jan 4 2026, 11:31 PM
Unknown Object (File)
Nov 25 2025, 3:18 PM
Unknown Object (File)
Nov 25 2025, 5:09 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