diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 06:07:58 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-03-25 06:07:58 +0000 |
commit | 9c83aadd2604e7e6cb1f84683f951e6b12872618 (patch) | |
tree | c0a14c87378e832e87580be382e1c8ccea188b71 /doc/development/shell_commands.md | |
parent | 23bc19cb73aad969c9636b8b935111645e809e54 (diff) | |
download | gitlab-ce-9c83aadd2604e7e6cb1f84683f951e6b12872618.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'doc/development/shell_commands.md')
-rw-r--r-- | doc/development/shell_commands.md | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/doc/development/shell_commands.md b/doc/development/shell_commands.md index 29fee58ed8a..b71fcbdc2ab 100644 --- a/doc/development/shell_commands.md +++ b/doc/development/shell_commands.md @@ -71,19 +71,21 @@ Make the difference between options and arguments clear to the argument parsers To understand what `--` does, consider the problem below. -``` +```shell # Example $ echo hello > -l $ cat -l + cat: illegal option -- l usage: cat [-benstuv] [file ...] ``` In the example above, the argument parser of `cat` assumes that `-l` is an option. The solution in the example above is to make it clear to `cat` that `-l` is really an argument, not an option. Many Unix command line tools follow the convention of separating options from arguments with `--`. -``` +```shell # Example (continued) $ cat -- -l + hello ``` @@ -203,7 +205,7 @@ validates :import_url, format: { with: URI.regexp(%w(ssh git http https)) } Suppose the user submits the following as their import URL: -``` +```plaintext file://git:/tmp/lol ``` |