endgameinc/eqllib

No sources available for convert-data

Closed this issue · 1 comments

Describe the bug

No sources available when running eqllib convert-data -h:

C:\Users\IEUser\eqllib>eqllib convert-data -h
usage: eqllib convert-data [-h] [--encoding ENCODING]
                           [--format {json,jsonl,json.gz,jsonl.gz}]
                           [--source {}]
                           input-file output-file

positional arguments:
  input-file            Input JSON file
  output-file           Output JSON file

optional arguments:
  -h, --help            show this help message and exit
  --encoding ENCODING, -e ENCODING
                        Encoding of input file
  --format {json,jsonl,json.gz,jsonl.gz}
  --source {}, -s {}    Data source

To Reproduce

Steps to reproduce the behavior:

  1. git clone https://github.com/endgameinc/eqllib
  2. cd eqllib
  3. python setup.py install
  4. eqllib convert-data -h

After running the third command, there were a couple of warnings:

warning: manifest_maker: MANIFEST.in, line 3: path 'eqllib/domains/' cannot end with '/'
warning: manifest_maker: MANIFEST.in, line 4: path 'eqllib/sources/' cannot end with '/'
warning: manifest_maker: MANIFEST.in, line 5: path 'eqllib/analytics/' cannot end with '/'

Expected behavior

C:\Users\IEUser\eqllib>eqllib convert-data -h
usage: eqllib convert-data [-h] [--encoding ENCODING]
                           [--format {json,jsonl,json.gz,jsonl.gz}]
                           [--source {security,MITRE Cyber Analytics Repository,Microsoft Sysmon}]
                           input-file output-file

positional arguments:
  input-file            Input JSON file
  output-file           Output JSON file

optional arguments:
  -h, --help            show this help message and exit
  --encoding ENCODING, -e ENCODING
                        Encoding of input file
  --format {json,jsonl,json.gz,jsonl.gz}
  --source {security,MITRE Cyber Analytics Repository,Microsoft Sysmon}, -s {security,MITRE Cyber Analytics Repository,Microsoft Sysmon}
                        Data source

I fixed it by removing the '/' at the end (as the warning said basically). Not sure if relevant, but I'm using Win10 & Python 3.7.4.

Thanks for the suggestion!I'll try removing / and confirm the fix.