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, Sep 25, 12:42 PM
Unknown Object (File)
Wed, Sep 23, 7:23 AM
Unknown Object (File)
Tue, Sep 22, 10:02 AM
Unknown Object (File)
Wed, Sep 16, 4:30 AM
Unknown Object (File)
Fri, Sep 11, 9:12 PM
Unknown Object (File)
Aug 27 2026, 11:42 PM
Unknown Object (File)
Aug 23 2026, 12:03 AM
Unknown Object (File)
Aug 22 2026, 5:25 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