silicon: add short options (#18771)

Co-authored-by: Dylan <145150333+dmmqz@users.noreply.github.com>
This commit is contained in:
Managor
2025-10-16 03:55:16 +03:00
committed by GitHub
parent 03f32ae3cd
commit 738481594d
+5 -4
View File
@@ -1,16 +1,17 @@
# silicon
> Create an image of source code.
> More information: <https://github.com/Aloxaf/silicon>.
> See also: `freeze`.
> More information: <https://github.com/Aloxaf/silicon#examples>.
- Generate an image from a specific source file:
`silicon {{path/to/source_file}} --output {{path/to/output_image}}`
`silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}}`
- Generate an image from a source file with a specific programming language syntax highlighting (e.g. `rust`, `py`, `js`, etc.):
`silicon {{path/to/source_file}} --output {{path/to/output_image}} --language {{language|extension}}`
`silicon {{path/to/source_file}} {{[-o|--output]}} {{path/to/output_image}} {{[-l|--language]}} {{language|extension}}`
- Generate an image from `stdin`:
`{{command}} | silicon --output {{path/to/output_image}}`
`{{command}} | silicon {{[-o|--output]}} {{path/to/output_image}}`