Skip to content

Commit

Permalink
Fix command conan remote (#3031)
Browse files Browse the repository at this point in the history
* Fix conan remote add -h content

* Fix indentation

* Change 'optional arguments' to 'options'

Makes it identical to the actual command line output.
  • Loading branch information
Kasurus authored Feb 27, 2023
1 parent 36f8acd commit 876ab64
Showing 1 changed file with 38 additions and 32 deletions.
70 changes: 38 additions & 32 deletions reference/commands/remote.rst
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ work with Conan repositories, please check the :ref:`dedicated section <conan_re
Manage the remote list and the users authenticated on them.
positional arguments:
{add,auth,disable,enable,list,list-users,login,logout,remove,rename,set-user,update}
{add,auth,disable,enable,list,list-users,login,logout,remove,rename,set-user,update}
sub-command help
add Add a remote.
auth Authenticate in the defined remotes
Expand All @@ -30,11 +30,11 @@ work with Conan repositories, please check the :ref:`dedicated section <conan_re
set-user Associate a username with a remote matching a pattern without performing the authentication.
update Update a remote.
optional arguments:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose to more verbose: -vquiet, -verror, -vwarning,
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose to more verbose: -vquiet, -verror, -vwarning,
-vnotice, -vstatus, -v or -vverbose, -vv or -vdebug, -vvv or -vtrace
--logger Show the output with log format, with time, type and message.
--logger Show the output with log format, with time, type and message.
Expand All @@ -43,19 +43,25 @@ conan remote add

.. code-block:: text
$ conan remote add -h
usage: conan remote add [-h] [-i [INSERT]] [-f] remote url [verify_ssl]
$ conan remote add -h
usage: conan remote add [-h] [-v [V]] [--logger] [--insecure] [--index INDEX] [-f] name url
Add a remote.
positional arguments:
remote Name of the remote
url URL of the remote
verify_ssl Verify SSL certificate. Defaulted to True
name Name of the remote to add
url Url of the remote
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose to more verbose:
-vquiet, -verror, -vwarning, -vnotice, -vstatus, -v or -vverbose, -vv or -vdebug, -vvv
or -vtrace
--logger Show the output with log format, with time, type and message.
--insecure Allow insecure server connections when using SSL
--index INDEX Insert the remote at a specific position in the remote list
-f, --force Force the definition of the remote even if duplicated
optional arguments:
-h, --help show this help message and exit
-i [INSERT], --insert [INSERT]
insert remote at specific index
-f, --force Force addition, will update if existing
conan remote auth
Expand All @@ -69,14 +75,14 @@ conan remote auth
Authenticate in the defined remotes
positional arguments:
remote Pattern of the remote/s to disable. The pattern uses 'fnmatch' style wildcards.
remote Pattern of the remote/s to disable. The pattern uses 'fnmatch' style wildcards.
optional arguments:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose to more verbose: -vquiet, -verror, -vwarning, -vnotice,
-vstatus, -v or -vverbose, -vv or -vdebug, -vvv or -vtrace
--logger Show the output with log format, with time, type and message.
--with-user Only try to auth in those remotes that already have a username or a CONAN_LOGIN_ env-var defined
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose to more verbose: -vquiet, -verror, -vwarning, -vnotice,
-vstatus, -v or -vverbose, -vv or -vdebug, -vvv or -vtrace
--logger Show the output with log format, with time, type and message.
--with-user Only try to auth in those remotes that already have a username or a CONAN_LOGIN_ env-var defined
conan remote disable
Expand All @@ -93,7 +99,7 @@ conan remote disable
remote Pattern of the remote/s to disable. The pattern uses 'fnmatch'
style wildcards.
optional arguments:
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose
to more verbose: -vquiet, -verror, -vwarning, -vnotice,
Expand All @@ -115,7 +121,7 @@ conan remote enable
remote Pattern of the remote/s to enable. The pattern uses 'fnmatch'
style wildcards.
optional arguments:
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose
to more verbose: -vquiet, -verror, -vwarning, -vnotice,
Expand All @@ -133,7 +139,7 @@ conan remote list
List current remotes.
optional arguments:
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
Select the output format: json
Expand All @@ -155,7 +161,7 @@ conan remote list-users
List the users logged into all the remotes.
optional arguments:
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
Select the output format: json
Expand Down Expand Up @@ -183,7 +189,7 @@ conan remote login
pattern uses 'fnmatch' style wildcards.
username Username
optional arguments:
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
Select the output format: json
Expand Down Expand Up @@ -213,7 +219,7 @@ conan remote logout
remote Pattern or name of the remote to logout. The pattern
uses 'fnmatch' style wildcards.
optional arguments:
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
Select the output format: json
Expand All @@ -238,7 +244,7 @@ conan remote remove
positional arguments:
remote Name of the remote to remove. Accepts 'fnmatch' style wildcards.
optional arguments:
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose
to more verbose: -vquiet, -verror, -vwarning, -vnotice,
Expand All @@ -260,7 +266,7 @@ conan remote rename
remote Current name of the remote
new_name New name for the remote
optional arguments:
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less verbose
to more verbose: -vquiet, -verror, -vwarning, -vnotice,
Expand All @@ -285,7 +291,7 @@ conan remote set-user
'fnmatch' style wildcards.
username Username
optional arguments:
options:
-h, --help show this help message and exit
-f FORMAT, --format FORMAT
Select the output format: json
Expand All @@ -312,7 +318,7 @@ conan remote update
positional arguments:
remote Name of the remote to update
optional arguments:
options:
-h, --help show this help message and exit
-v [V] Level of detail of the output. Valid options from less
verbose to more verbose: -vquiet, -verror, -vwarning,
Expand Down

0 comments on commit 876ab64

Please sign in to comment.