Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

POSIX-compliant #3

Open
5 of 11 tasks
joseluisq opened this issue Nov 22, 2020 · 0 comments
Open
5 of 11 tasks

POSIX-compliant #3

joseluisq opened this issue Nov 22, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@joseluisq
Copy link
Owner

joseluisq commented Nov 22, 2020

Cline must be POSIX-compliant according to https://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html

  • Arguments are options if they begin with a hyphen delimiter (‘-’).
  • Option names are single alphanumeric characters.
  • Certain options require an argument. For example, the ‘-o’ command of the ld command requires an argument—an output file name.
  • Options typically precede other non-option arguments.
  • The argument ‘--’ terminates all options; any following arguments are treated as non-option arguments, even if they begin with a hyphen.
  • A token consisting of a single hyphen character is interpreted as an ordinary non-option argument. By convention, it is used to specify input from or output to the standard input and output streams.
  • An option and its argument may or may not appear as separate tokens. (In other words, the whitespace separating them is optional.) Thus, ‘-o foo’ and ‘-ofoo’ are equivalent.
  • Multiple options may follow a hyphen delimiter in a single token if the options do not take arguments. Thus, ‘-abc’ is equivalent to ‘-a -b -c’.
  • Options may be supplied in any order, or appear multiple times. The interpretation is left up to the particular application program.
  • Long options consist of ‘--’ followed by a name made of alphanumeric characters and dashes. Option names are typically one to three words long, with hyphens to separate words. Users can abbreviate the option names as long as the abbreviations are unique.
  • To specify an argument for a long option, write ‘--name=value’. This syntax enables a long option to accept an argument that is itself optional.
@joseluisq joseluisq added enhancement New feature or request help wanted Extra attention is needed labels Nov 22, 2020
@joseluisq joseluisq self-assigned this Nov 22, 2020
@joseluisq joseluisq pinned this issue Jun 26, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant