Skip to content

connstat should output possible fields when providing an invalid command-line field #16

@sebroy

Description

@sebroy

connstat outputs a python backtrace when I try and output an invalid field:

delphix@localhost:~$ connstat -e -F lport=2049 -o garbage -i 1
Traceback (most recent call last):
  File "/usr/bin/connstat", line 209, in <module>
    output_fields.append(Field[item])
  File "/usr/lib/python3.6/enum.py", line 329, in __getitem__
    return cls._member_map_[name]
KeyError: 'garbage'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions