Generate placeholder text via CLI. Supports multiple styles and output formats.
# 3 paragraphs of classic Lorem Ipsum
python3 scripts/lorem_gen.py
# 5 sentences
python3 scripts/lorem_gen.py -n 5 -u sentences
# 50 words of hipster-style text
python3 scripts/lorem_gen.py -n 50 -u words -s hipster
# Tech jargon as HTML
python3 scripts/lorem_gen.py -s tech -f html
# JSON output with reproducible seed
python3 scripts/lorem_gen.py -n 2 -f json --seed 42
| Flag | Description | Default |
|---|---|---|
| ------ | ------------- | --------- |
-n, --count | Number of units | 3 |
-u, --unit | paragraphs, sentences, or words | paragraphs |
-s, --style | lorem, hipster, or tech | lorem |
-f, --format | plain, html, markdown, json | plain |
--no-classic | Skip "Lorem ipsum dolor sit amet..." opening | off |
--seed | Random seed for reproducible output | none |
--no-classic to disable)--seed for deterministic output across runs共 1 个版本