pub struct Args {Show 19 fields
pub chop: bool,
pub content_type: Option<String>,
pub dim: bool,
pub display: Option<String>,
pub examples: bool,
pub filter: Vec<String>,
pub follow: bool,
pub format: Option<String>,
pub head: Option<usize>,
pub line_numbers: bool,
pub list_formats: bool,
pub live: bool,
pub manual: bool,
pub output: Option<String>,
pub prettify: bool,
pub stdout: bool,
pub tab_width: u8,
pub tail: Option<usize>,
pub files: Vec<PathBuf>,
}Fields§
§chop: boolChop long lines instead of wrapping.
content_type: Option<String>Force the content type for --prettify (otherwise auto-detected from
the filename extension and the first bytes). Values:
auto, raw, json, yaml, toml, xml, html, csv.
Setting this implies --prettify (unless the value is raw/auto).
dim: boolWith --filter, dim non-matching lines instead of hiding them. Keeps
surrounding context visible.
display: Option<String>Render each parsed line through this template instead of showing the
raw line. Syntax: <fieldname> placeholders, \< for literal <,
\\ for literal \. Example: --display '[<time>] <status> <msg>'.
Overrides the format’s display key (if set). Requires --format.
Search still matches against the raw line.
examples: boolPrint a curated list of usage examples and exit.
filter: Vec<String>Filter visible lines by parsed field. Repeatable; multiple filters AND.
Operators: = (exact), != (exact ≠), ~ (regex), !~ (regex ≠),
<, <=, >, >= (numeric if both sides parse as numbers, else
lexicographic). Examples: --filter status=500, --filter ip~^10\.,
--filter 'status>=500' (quote < and > to avoid shell redirection).
Requires --format.
follow: boolFollow mode: keep watching the source for new bytes (like tail -f).
Jumps to the bottom on startup. Toggle with Shift-F at runtime.
format: Option<String>Apply a named log format (built-in or user-defined in
~/.config/tess/formats.toml). Required by --filter.
head: Option<usize>Show only the first N lines of the source. Mutually exclusive with –tail.
line_numbers: boolShow line numbers.
list_formats: boolPrint available log formats and their named fields, then exit.
live: boolLive mode: re-read the file when its on-disk content changes (mtime,
size, or inode). Use this for files rewritten in place — source files
being edited, files saved by an editor or AI agent. Different from
--follow (which watches for appended bytes); the two are mutually
exclusive. Press R inside the pager to force a reload.
manual: boolPrint the full user manual and exit.
output: Option<String>Non-interactive batch mode: apply –filter / –head / –tail / –prettify
to the source and write the resulting raw bytes to FILE, then exit.
Use - for stdout (--stdout is a synonym). Skips the alt-screen and
raw mode entirely. With --follow, doesn’t exit — keeps appending
matching new bytes to FILE as they arrive (Ctrl-C to stop). Not
compatible with --live.
prettify: boolPretty-print structured content (JSON, YAML, TOML, XML, HTML, CSV).
Detects the type from the filename extension or the first bytes; use
--content-type=NAME to override. Static files only — not allowed
with --follow, --live, or --filter. Toggle interactively with
Shift-P; force a type with -P then a letter (j/y/t/x/h/c).
stdout: boolSynonym for --output -: write the batch-mode output to stdout.
tab_width: u8Tab stop width (default 8).
tail: Option<usize>Show only the last N lines of the source. For files this skips most of
the index work — useful for huge logs. Combine with -f for tail -f.
Mutually exclusive with –head. Streaming stdin is not supported.
files: Vec<PathBuf>Files to view (only the first is opened in MVP).
Trait Implementations§
Source§impl Args for Args
impl Args for Args
Source§fn augment_args<'b>(__clap_app: Command) -> Command
fn augment_args<'b>(__clap_app: Command) -> Command
Source§fn augment_args_for_update<'b>(__clap_app: Command) -> Command
fn augment_args_for_update<'b>(__clap_app: Command) -> Command
Command so it can instantiate self via
FromArgMatches::update_from_arg_matches_mut Read moreSource§impl CommandFactory for Args
impl CommandFactory for Args
Source§impl FromArgMatches for Args
impl FromArgMatches for Args
Source§fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
fn from_arg_matches(__clap_arg_matches: &ArgMatches) -> Result<Self, Error>
Source§fn from_arg_matches_mut(
__clap_arg_matches: &mut ArgMatches,
) -> Result<Self, Error>
fn from_arg_matches_mut( __clap_arg_matches: &mut ArgMatches, ) -> Result<Self, Error>
Source§fn update_from_arg_matches(
&mut self,
__clap_arg_matches: &ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches( &mut self, __clap_arg_matches: &ArgMatches, ) -> Result<(), Error>
ArgMatches to self.Source§fn update_from_arg_matches_mut(
&mut self,
__clap_arg_matches: &mut ArgMatches,
) -> Result<(), Error>
fn update_from_arg_matches_mut( &mut self, __clap_arg_matches: &mut ArgMatches, ) -> Result<(), Error>
ArgMatches to self.