cli: Add a command line argument for commands to run at startup

Review Request #3805 — Created Feb. 1, 2025 and updated

Information

ibis/ibis
default

Reviewers

The argument can be specified multiple times and will be run in the order
provided. These will also be ran before the join-channels argument which
should probably be deprecated at this point, but we'll leave it for now.

Here is an example invocation I used for testing where I changed my nick,
joined a channel, and messaged another user.

$ ./ibis-cli/ibis-cli -s 192.168.1.220 -n cli1 -c "NICK cli2" -c "JOIN #pidgin" -c "PRIVMSG senpai_ :sup?"

Used the above mentioned command and verified all those things happened.

Summary ID
cli: Add a command line argument for commands to run at startup
The argument can be specified multiple times and will be run in the order provided. These will also be ran before the join-channels argument which should probably be deprecated at this point, but we'll leave it for now. Here is an example invocation I used for testing where I changed my nick, joined a channel, and messaged another user. $ ./ibis-cli/ibis-cli -s 192.168.1.220 -n cli1 -c "NICK cli2" -c "JOIN #pidgin" -c "PRIVMSG senpai_ :sup?"
d1a16f98b493c7137fc9f07cf86c06b433d4f844