We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 469e55b commit 4ea551aCopy full SHA for 4ea551a
UltiSnips/generate.py
@@ -150,7 +150,7 @@ def option_data_to_snippet_completion(option_data: Any) -> str:
150
return "false"
151
152
# if there is no default and no choices, return the description
153
- if not choices and default is None:
+ if not choices and default is None and not args.no_description:
154
return f"# {description}"
155
156
# if there is a default but no choices return the default as string
@@ -316,6 +316,12 @@ def get_collection_name(filepath:str) -> str:
316
action="store_true",
317
default=False
318
)
319
+ parser.add_argument(
320
+ '--no-description',
321
+ help="Remove options description",
322
+ action="store_true",
323
+ default=False
324
+ )
325
args = parser.parse_args()
326
327
0 commit comments