Open all networks
Opened this issue · 2 comments
Hi,
I see that the QUIT
command allows quitting all networks, it'd be nice to allow OPEN
to connect to all networks. For example, after adding all networks/servers when starting with a fresh configuration.
Thanks!
OPEN
without arguments could do that I suppose.
Actually I thought the API wasn't optimal here, I think the paradigm should rather be something like:
QUIT [-a] <network>…
With QUIT
(no args) returning an error/usage, QUIT network [network2…]
quitting the given networks, and QUIT -a
quitting all networks.
That way the user doesn't shoot themselves in the foot because they expected the command without argument to print a help message, but instead had all their networks quit. It almost happened to me before I realised the commands are parsed with arparse
, which guarantees that command -h
will print a help message.
The same would apply to OPEN
.