Skip to content

Commit 9db4ff3

Browse files
committed
chg: [CLI] In long argument names, replaced underscores with dashes
1 parent 618ef76 commit 9db4ff3

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

misp_stix_converter/__init__.py

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -75,21 +75,21 @@ def main():
7575
required=True, help='STIX specific version.'
7676
)
7777
export_parser.add_argument(
78-
'-s', '--single_output', action='store_true',
78+
'-s', '--single-output', action='store_true',
7979
help='Produce only one result file (in case of multiple input file).'
8080
)
8181
export_parser.add_argument(
82-
'-m', '--in_memory', action='store_true',
82+
'-m', '--in-memory', action='store_true',
8383
help='Store result in memory (in case of multiple result files) '
8484
'instead of storing it in tmp files.'
8585
)
8686
export_parser.add_argument(
87-
'--output_dir', type=Path,
87+
'--output-dir', type=Path,
8888
help='Output path - used in the case of multiple input files when the '
8989
'`single_output` argument is not used.'
9090
)
9191
export_parser.add_argument(
92-
'-o', '--output_name', type=Path,
92+
'-o', '--output-name', type=Path,
9393
help='Output file name - used in the case of a single input file or '
9494
'when the `single_output` argument is used.'
9595
)
@@ -126,17 +126,17 @@ def main():
126126
help='STIX major version - default is 2'
127127
)
128128
import_parser.add_argument(
129-
'-s', '--single_event', action='store_true',
129+
'-s', '--single-event', action='store_true',
130130
help='Produce only one MISP event per STIX file'
131131
'(in case of multiple Report, Grouping or Incident objects).'
132132
)
133133
import_parser.add_argument(
134-
'-o', '--output_name', type=Path,
134+
'-o', '--output-name', type=Path,
135135
help='Output file name - used in the case of a single input file or '
136136
'when the `single_event` argument is used.'
137137
)
138138
import_parser.add_argument(
139-
'--output_dir', type=Path,
139+
'--output-dir', type=Path,
140140
help='Output path - used in the case of multiple input files when the '
141141
'`single_event` argument is not used.'
142142
)
@@ -152,18 +152,18 @@ def main():
152152
'''
153153
)
154154
import_parser.add_argument(
155-
'-sg', '--sharing_group', type=int, default=None,
155+
'-sg', '--sharing-group', type=int, default=None,
156156
help='Sharing group ID when distribution is 4.'
157157
)
158158
import_parser.add_argument(
159-
'--galaxies_as_tags', action='store_true',
159+
'--galaxies-as-tags', action='store_true',
160160
help='Import MISP Galaxies as tag names instead of the standard Galaxy format.'
161161
)
162162
import_parser.add_argument(
163-
'--org_uuid', help='Organisation UUID to use when creating custom Galaxy clusters.'
163+
'--org-uuid', help='Organisation UUID to use when creating custom Galaxy clusters.'
164164
)
165165
import_parser.add_argument(
166-
'-cd', '--cluster_distribution', type=int, default=0, choices=[0, 1, 2, 3, 4],
166+
'-cd', '--cluster-distribution', type=int, default=0, choices=[0, 1, 2, 3, 4],
167167
help='''
168168
Galaxy Clusters distribution level
169169
in case of External STIX 2 content (default id 0)
@@ -175,7 +175,7 @@ def main():
175175
'''
176176
)
177177
import_parser.add_argument(
178-
'-cg', '--cluster_sharing_group', type=int, default=None,
178+
'-csg', '--cluster-sharing-group', type=int, default=None,
179179
help='Galaxy Clusters sharing group ID in case of External STIX 2 content.'
180180
)
181181
import_parser.add_argument(
@@ -197,11 +197,11 @@ def main():
197197
'-u', '--url', type=str, help='URL to connect to your MISP instance.'
198198
)
199199
import_parser.add_argument(
200-
'-a', '--api_key', type=str,
200+
'-a', '--api-key', type=str,
201201
help='Authentication key to connect to your MISP instance.'
202202
)
203203
import_parser.add_argument(
204-
'--skip_ssl', action='store_true',
204+
'--skip-ssl', action='store_true',
205205
help='Skip SSL certificate checking when connecting to your MISP instance.'
206206
)
207207
import_parser.set_defaults(func=_stix_to_misp)

0 commit comments

Comments
 (0)