What should happen if user says:  -debug=net -debug  ?

I think you want:
```
bool allCategories = categories.count("");
```