feature to print all arguments for completions
This commit is contained in:
1 parent
079ccd4ed3
commit
6f28e63e3a
2 files changed
+49
-1
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in new issue
Block a user