Skip to content
This repository has been archived by the owner on Aug 29, 2020. It is now read-only.

Allow specifying multiple network interfaces #148

Open
cjbassi opened this issue Jun 7, 2019 · 2 comments
Open

Allow specifying multiple network interfaces #148

cjbassi opened this issue Jun 7, 2019 · 2 comments
Labels
enhancement New feature or request

Comments

@cjbassi
Copy link
Owner

cjbassi commented Jun 7, 2019

Currently, only 1 network interface can be selected with the -i option, but it would be nice to be able to specify a list of interfaces.

@cjbassi cjbassi added the enhancement New feature or request label Jun 7, 2019
@mattLLVW
Copy link
Contributor

Hey @cjbassi I'm implementing this and possibly #149 at the same time, but docopt can't use options with multiple argument.

I think there's two options here:

  • Repeating the interfaces (and maybe specify excluded):
gotop -i wlp2s0 -i br-aad9862f577f -e tun0

Or:

  • Specify a list(split on ',' and remove from stats on '!'):
gotop -i wlp2s0,br-aad9862f577f,!tun0

What do you think?

@cjbassi
Copy link
Owner Author

cjbassi commented Jun 11, 2019

Hey thanks for working on this. I was thinking the second option, that seems more ergonomic to me.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants