jaredpmclaughlin / ircb

An irc bot.
0 stars 0 forks source link

Command line args are broken and fragile. #6

Closed jaredpmclaughlin closed 2 years ago

jaredpmclaughlin commented 2 years ago

I need to define the command line arguments I want to run with, then make sure that wrong args don't blow the whole thing up.

jaredpmclaughlin commented 2 years ago

http://tclap.sourceforge.net/

Docs for the parser library to use.

jaredpmclaughlin commented 2 years ago

ideally, the command line should look like: 'ircb -c [server name] -p [port] -n [nick] -j [chan] -j [chan] ...' where port can be omitted (default to 6667) and the number of -j [chan] args is at least 1

with optional long args 'ircb --connect [server] --port [port] --nick [nick] --join [chan] --join [chan] ...'

or on windows 'ircb /c [server] /p [port] /n [nick] /j [chan] /j [chan]'

jaredpmclaughlin commented 2 years ago

This was closed by work done on integrating tclap.