Test Failed
Pull Request — master (#143)
by Humberto
04:46
created

kytos.cli.commands.bug_report.parser   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 32
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 11
dl 0
loc 32
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0
wmc 2

1 Function

Rating   Name   Duplication   Size   Complexity  
A parse() 0 8 2
1
"""kytos - The kytos command line.
2
3
You are at the "bug-report" command.
4
5
Usage:
6
       kytos bug-report
7
       kytos bug-report -h | --help
8
9
Options:
10
11
  -h, --help    Show this screen.
12
13
Common napps subcommands:
14
15
   bug-report Display a datailed information about the kytos environment
16
17
"""
18
from docopt import docopt
19
20
from kytos.cli.commands.bug_report.api import BugReportAPI
21
from kytos.utils.exceptions import KytosException
22
23
24
def parse(argv):
25
    """Parse cli args."""
26
    args = docopt(__doc__, argv=argv)
27
    try:
28
        BugReportAPI.bug_report(args)
29
    except KytosException as exception:
30
        print("Error parsing args: {}".format(exception))
31
        exit()
32