All Questions
Tagged with documentation options
9 questions
3
votes
1
answer
218
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-...
64
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!
...
6
votes
2
answers
15k
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? ...
1
vote
2
answers
944
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 ...
1
vote
1
answer
110
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 ...
3
votes
3
answers
646
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 ...
6
votes
1
answer
1k
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, ...
2
votes
1
answer
57
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
...
4
votes
2
answers
54k
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 ...