Command (computing): Difference between revisions

Content deleted Content added
m top: use section sign
top: +links. Clarify wording.
Line 7:
Specifically, the term ''command'' is used in [[imperative programming]] languages. The name arises because [[statement (programming)|statements]] in these languages are usually written in a manner similar to the [[imperative mood]] used in many [[natural language]]s. A statement in an imperative programming language would then be a sentence in a natural language, and the command would be the [[Predicate_(grammar)|predicate]].
 
Many programs allow specifically formatted [[Parameter (computer science)|arguments]], known as flags[[Command-line flag|flag]]s or options, which modify the default behaviour of the program, while further arguments may provide objects[[object (computing)|object]]s, such as files[[file (computing)|file]]s, to act on. As an analogy to a [[natural language]], the flags are adverbs[[adverb]]s, while the other arguments are [[object (grammar)|grammatical object]]s.
 
==Distinction between ''command'' and [[Expression_(computer_science)|expression]], [[Statement_(computer_science)|statement]] and [[Function_(computer_programming)|function]]==