Page MenuHomeFreeBSD

jls: minor simplification to arg handling
ClosedPublic

Authored by kevans on Jul 25 2025, 8:38 PM.
Tags
None
Referenced Files
F153128085: D51540.id159145.diff
Sun, Apr 19, 8:48 AM
Unknown Object (File)
Sat, Apr 18, 9:41 PM
Unknown Object (File)
Sat, Apr 18, 7:44 PM
Unknown Object (File)
Tue, Apr 7, 3:07 AM
Unknown Object (File)
Mon, Apr 6, 6:20 PM
Unknown Object (File)
Mar 14 2026, 8:50 AM
Unknown Object (File)
Mar 6 2026, 3:01 AM
Unknown Object (File)
Feb 28 2026, 8:12 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