26 lines
541 B
Markdown
26 lines
541 B
Markdown
# `scan`
|
|
|
|
This is a replacement for `ls` with additional features.
|
|
Though it may result as a rewrite of `eza` (formerly `exa`).
|
|
|
|
# notes
|
|
|
|
```c
|
|
static struct argp_option options[] = {
|
|
{"verbose", 'v', 0, 0, "Enable verbose output"},
|
|
{"output", 'o', "FILE", 0, "Output file"},
|
|
{0}
|
|
};
|
|
|
|
static void print_options(const struct argp_option *opts)
|
|
{
|
|
for (const struct argp_option *o = opts;
|
|
o->name || o->key || o->arg || o->flags || o->doc;
|
|
++o)
|
|
{
|
|
if (o->name)
|
|
puts(o->name);
|
|
}
|
|
}
|
|
```
|