Skip to content

Commit

Permalink
fix: resolve -d flag conflict and clarify stream flag behavior - Chan…
Browse files Browse the repository at this point in the history
…ge delay flag from -d to -w to avoid conflict with debug flag - Update stream flag help text to clarify it disables output directory
  • Loading branch information
mohsen1 committed Jan 13, 2025
1 parent 21aaf6f commit 0af6817
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 12 deletions.
23 changes: 13 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,20 +30,23 @@ export PATH=$(pwd)/target/release:$PATH
```bash
yek --help

yek 0.1.0
Serialize a repo or subdirectory's text files into chunked text with optional token counting.
Serialize repository content for LLM context

Usage: yek [OPTIONS]
Usage: yek [OPTIONS] [path]

Arguments:
[path] Path to repository [default: .]

Options:
-t, --tokens <MAX_SIZE> Maximum tokens/bytes per chunk (defaults to Infinity if omitted or 0)
-p, --path <PATH> Base path to serialize (optional)
-m, --model <MODEL> Model name, not actually used for real token counting, but accepted for parity
-c, --count-tokens Count tokens in a naive way rather than bytes
-s, --stream Stream output to stdout instead of writing to files
--config-file <CONFIGFILE> Path to optional yek.toml config file
-s, --max-size <max-size> Maximum size in MB [default: 10]
-c, --config <config> Path to config file
-o, --output-dir <output-dir> Directory to write output files (overrides config file)
-t, --stream Stream output to stdout instead of writing to file
-d, --delay <DELAY> Delay between file processing
-k, --tokens <MAX_TOKENS> Maximum number of tokens [default: 10000]
-d, --debug Enable debug logging
-h, --help Print help
-V, --version Print version

```

## Examples
Expand Down
4 changes: 2 additions & 2 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -543,14 +543,14 @@ fn main() -> Result<()> {
)
.arg(
Arg::new("stream")
.help("Stream output to stdout instead of writing to file")
.help("Stream output to stdout instead of writing to files (disables output directory)")
.short('t')
.long("stream")
.action(ArgAction::SetTrue),
)
.arg(
Arg::new("delay")
.short('d')
.short('w')
.long("delay")
.help("Delay between file processing")
.value_name("DELAY")
Expand Down

0 comments on commit 0af6817

Please sign in to comment.