Skip to content

Commit 66b2294

Browse files
authored
Merge pull request #1137 from cglewis/master
closes #1136
2 parents 4f73b2c + 31f211e commit 66b2294

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

poseidon/cli/cli.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,11 @@ def _check_flags(self, flags, fields, sort_by=0, max_width=0, unique=False, nonz
322322
ipv6_only = False
323323
ipv4_and_ipv6 = True
324324

325+
if 'fields' in flags and not '4' in flags and not '6' in flags and not '4and6' in flags:
326+
ipv4_only = False
327+
ipv6_only = False
328+
ipv4_and_ipv6 = False
329+
325330
return fields, sort_by, max_width, unique, nonzero, output_format, ipv4_only, ipv6_only, ipv4_and_ipv6
326331

327332
def display_results(self, endpoints, fields, sort_by=0, max_width=0, unique=False, nonzero=False, output_format='table', ipv4_only=True, ipv6_only=False, ipv4_and_ipv6=False):

0 commit comments

Comments
 (0)