Syntax and boolean values
onesource [PATH] [OPTIONS]
onesource [PATH] profile <COMMAND>
onesource [PATH] explain <PATHS>... [OPTIONS]
onesource update
onesource help profile updatePersistable boolean options and --show-arg accept a bare flag (true) or =true/=false; use --no-tree=false, not --no-tree false. Action flags such as --copy, --save and --dry-run do not accept =false. Top-level options are not global: put root and top-level options before the subcommand. Explain and profile create/update have their own options after the subcommand.
All arguments and options
| Syntax | Field, type, default | Commands and profile storage | Behavior and example |
|---|---|---|---|
[PATH] | pathdirectory; . | Top level Profile: no | Scan root; must exist and be a directory. Put before subcommands. Config is read only from PATH/.onesourcerc; no ancestor search.
Preview the given root. |
-o, --output-path PATH | output_pathpath; <root-name>.onesource | Normal + explain + profile create/update Profile: yes | Relative to the working directory, even with another scan root. Current output is always excluded. Parent must already exist for file output.
Write review.txt in the working directory. |
-i, --include GLOBS | includestring; unset (all) | Normal + explain + profile create/update Profile: yes | Comma-separated patterns. Empty string clears the filter; blacklist and ignore still apply. Tree inherits unless overridden.
Preview eligible Rust files. |
-x, --exclude GLOBS | excludestring; unset | Normal + explain + profile create/update Profile: yes | Exclude wins over include. Empty string clears this filter. Tree inherits unless overridden.
Remove log paths from content and inherited tree. |
--tree-include, --ti GLOBS | tree_includestring; inherit include | Normal + explain + profile create/update Profile: yes | Overrides only the tree include; use ="" to show all otherwise eligible tree paths.
Tree shows TOML; content selects Rust. |
--tree-exclude, --tx GLOBS | tree_excludestring; inherit exclude | Normal + explain + profile create/update Profile: yes | Overrides only the tree exclude; empty string removes inherited exclusions.
Tree no longer inherits log exclusion. |
--no-ignore[=BOOL] | no_ignoreboolean; false | Normal + explain + profile create/update Profile: yes | Disables standard ignore filters for content. Tree inherits unless tree-no-ignore is set. Does not disable blacklist.
Ignore rules bypassed, blacklist retained. |
--tree-no-ignore[=BOOL] | tree_no_ignoreboolean; inherit no_ignore | Normal + explain + profile create/update Profile: yes | Independent ignore override for tree. Explicit false keeps tree ignore rules even with --no-ignore.
Tree still honors ignore. |
--no-tree[=BOOL] | no_treeboolean; false | Normal + explain + profile create/update Profile: yes | Omits the tree only; file content is unaffected.
No tree, file preview remains. |
--no-blacklist[=BOOL] | no_blacklistboolean; false | Normal + explain + profile create/update Profile: yes | Disables built-in blacklist for both content and tree. Current output still excluded; ignore and glob filters remain.
No built-in blacklist block for .env. |
-m, --max-size KIB | max_sizenonnegative usize; 500 KiB | Normal + explain + profile create/update Profile: yes | Content only. Rejects bytes > KIB × 1024; equality is allowed. Zero admits only empty files. Tree unaffected.
At most 1024 bytes per content file. |
--desc TEXT | descriptionstring; unset | Normal + explain + profile create/update Profile: yes | Stored with --save or profile create/update. Does not change selection. Empty string is allowed. Explain accepts but ignores it.
Store description in default. |
-p, --profile NAME | profilestring; default | Normal + explain Profile: no | Loads exactly one profile, without merging default into named profiles. Missing explicit profile is an error unless --no-config.
Preview with an existing review profile. |
--no-config | no_configflag; false | Normal + explain Profile: no | Skips loading config; --save still reads and writes the config document.
Use built-in values and explicit CLI options. |
--dry-run | dry_runflag; false | Normal + explain Profile: no | Reads files and estimates output without writing bundle or clipboard. --save still persists config before scan.
Print expectations and estimates; no bundle. |
-c, --copy | copyflag; false | Normal + explain Profile: no | Copies entire bundle instead of writing file. --dry-run suppresses copy. Clipboard failures stop execution.
Copy bundle; no output file. |
--save | saveflag; false | Normal + explain Profile: no | Upserts explicit persistable options into active profile before scan; a later scan failure does not undo save.
Merge explicit include into default. |
--replace | replaceflag; false | Normal + explain Profile: no | Requires --save in normal runs; discards unspecified saved fields. profile update also supports --replace.
Stored default contains only explicit include. |
--show-arg[=BOOL] | show_argboolean; false | Normal + explain Profile: no | Prints resolved AppConfig after normal execution and statistics. Explain accepts but does not print it.
Print resolved arguments after statistics. |
-h, --help | helpflag; no execution | All commands Profile: no | Shows help for the current command. help subcommand is also available. Not a setting.
Show diagnostic command help. |
-V, --version | versionflag; no execution | Top level Profile: no | Shows executable version at top level; not a setting.
Print installed version and exit. |
Overrides and help
onesource --no-config --no-tree=false -m 1 --dry-run
onesource --include="" --tree-exclude="" --dry-run
onesource explain src/main.rs --no-ignore=false
onesource profile --help
onesource profile update --help
onesource explain --help
onesource --versionThe first preview allows content up to 1024 bytes and keeps the tree. Empty filters override saved strings. For each option, the behavior column describes its interactions; use the corresponding detailed page for output examples.