feature to print all arguments for completions

This commit is contained in:
root committed 2026-10-14 13:05:03 +02:00
1 parent 079ccd4ed3
commit 6f28e63e3a
2 files changed
+49 -1

No files matched your search

+21
View File
@@ -2,3 +2,24 @@
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);
}
}
```