Skip to main content
The 2024 Developer Survey results are live! See the results

All Questions

Tagged with
3 votes
1 answer
199 views

Are some apt long options undocumented?

I cannot find documentation on some long, double-dash options of apt, upon which I stumbled with Bash's tab-completion. $ apt install --<TAB><TAB> --allow-change-held-packages --fix-...
Quasímodo's user avatar
63 votes
4 answers
11k views

Where is the `--` (double dash) argument documented?

There are some utilities that accept a -- (double dash) as the signal for "end of options", required when a file name starts with a dash: $ echo "Hello World!" >-file $ cat -- -file Hello World! ...
user avatar
6 votes
2 answers
14k views

What does grep -w do?

In here grep is used with the option -w. I did man grep and grep --help to try to find what the aforementioned option does. Neither output says anything about a -w option. What does that option do? ...
CcVHKakalLLOOPPOkKkkKk's user avatar
0 votes
2 answers
793 views

What do the options after a specific command mean?

How do I understand what the various options/flags mean? For example: 1) uname -a - What does -a denote here? 2) pyang -f - What does -f denote here? I just want to understand if there is some ...
fsociety's user avatar
  • 139
1 vote
1 answer
102 views

How do I specify command invocation for a mandatory short or long option?

I'm writing a specification for a tool that needs a -f / --foo option with a mandatory argument BAR, so for example these are valid calls: tool -f BAR tool --foo BAR How do I specify this syntax in ...
slhck's user avatar
  • 475
3 votes
3 answers
636 views

Interactive command usage reference: do you generally have that on Unix?

The question of why some commands rely on manpages whereas others rely on something like the --help flag for providing command usage reference is not new. There is usually a difference in scope ...
user avatar
5 votes
1 answer
867 views

POSIX usage standards for requiring at least one optional arg

So, I'm writing a CLI for an API, and I ran into a point where one of the commands support has two optional arguments, id and fields I want to know how to show that these arguments are optional, BUT, ...
Christopher Wirt's user avatar
2 votes
1 answer
45 views

Correct way to document variable length options in man pages

Sometimes I see usage information like some_utility [arg [arg [...]]] or some_utility [arg[, arg[...]]] that indicates that you can pass more than one of the same argument. I've also seen it like ...
David Winiecki's user avatar
4 votes
2 answers
53k views

List of available command options?

I'm currently setting up my first web server without a control panel and so far things are going pretty good! I was just wondering if anyone could direct me to somewhere that explains all of the ...
Martin Hunt's user avatar