Skip to content

Commit

Permalink
fix: [misp_stix_converter] Fixed some argparse help values
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisr3d committed Aug 20, 2024
1 parent 52aa46f commit 03dc3be
Showing 1 changed file with 19 additions and 5 deletions.
24 changes: 19 additions & 5 deletions misp_stix_converter/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,7 @@ def main():

# IMPORT SUBPARSER
import_parser = subparsers.add_parser(
'import', help='Import STIX to MISP - try '
'`misp_stix_converter import -h` for more help.'
'import', help='Import STIX to MISP - try `misp_stix_converter import -h` for more help.'
)
import_parser.add_argument(
'-f', '--file', nargs='+', type=Path, required=True,
Expand All @@ -138,7 +137,14 @@ def main():
)
import_parser.add_argument(
'-d', '--distribution', type=int, default=0, choices=[0, 1, 2, 3, 4],
help='Distribution level for the imported MISP content - default is 0'
help='''
Distribution level for the imported MISP content (default is 0)
- 0: Your organisation only
- 1: This community only
- 2: Connected communities
- 3: All communities
- 4: Sharing Group
'''
)
import_parser.add_argument(
'-sg', '--sharing_group', type=int, default=None,
Expand All @@ -153,15 +159,23 @@ def main():
)
import_parser.add_argument(
'-cd', '--cluster_distribution', type=int, default=0, choices=[0, 1, 2, 3, 4],
help='Galaxy Clusters distribution level in case of External STIX 2 content - default id 0'
help='''
Galaxy Clusters distribution level
in case of External STIX 2 content (default id 0)
- 0: Your organisation only
- 1: This community only
- 2: Connected communities
- 3: All communities
- 4: Sharing Group
'''
)
import_parser.add_argument(
'-cg', '--cluster_sharing_group', type=int, default=None,
help='Galaxy Clusters sharing group ID in case of External STIX 2 content.'
)
import_parser.add_argument(
'-t', '--title', type=str, default=None,
help='Title prefix to add to the MISP Event `info` field.'
help='Title used to set the MISP Event `info` field.'
)
import_parser.add_argument(
'-p', '--producer',
Expand Down

0 comments on commit 03dc3be

Please sign in to comment.