From: Zbigniew Jędrzejewski-Szmek Date: Fri, 16 Jan 2026 13:31:08 +0000 (+0100) Subject: Split up the giant switch statement in homectl's parse_argv (#40059) X-Git-Tag: v260-rc1~391 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3a5b37e162f8e118b8292fb3d3eda940552158c5;p=thirdparty%2Fsystemd.git Split up the giant switch statement in homectl's parse_argv (#40059) This is in preparation for later changes. The 1500+ line switch statement was very hard to work with and had quite a bit of duplicated code. This is a rework that splits outs parts into functions. I split this up into a bunch of commits so that it can be reasonably reviewed. When viewed as one giant commit, diff just shows a giant block of removed code and a giant block of added code. In some cases I wasn't sure why one or the other of the identity arrays is used… I preserved existing behaviour in all cases. --- 3a5b37e162f8e118b8292fb3d3eda940552158c5