From 705ec2cf45334fbd23e2721932fa395542e4fc91 Mon Sep 17 00:00:00 2001
From: Daryl White <53910321+djwfyi@users.noreply.github.com>
Date: Wed, 31 Aug 2022 12:46:27 -0500
Subject: [PATCH] Updating global flags to point to the common list in the mc
page (#541)
---
source/developers/javascript/API.md | 1 +
source/includes/common-minio-mc.rst | 49 ++---------------------------
source/reference/minio-mc.rst | 5 +++
3 files changed, 8 insertions(+), 47 deletions(-)
diff --git a/source/developers/javascript/API.md b/source/developers/javascript/API.md
index d64ed38f..4824c75f 100644
--- a/source/developers/javascript/API.md
+++ b/source/developers/javascript/API.md
@@ -53,6 +53,7 @@ var s3Client = new Minio.Client({
| [`setBucketReplication`](#setBucketReplication) | | | | | |
| [`getBucketReplication`](#getBucketReplication) | | | | | |
| [`removeBucketReplication`](#removeBucketReplication) | | | | | |
+
## 1. Constructor
diff --git a/source/includes/common-minio-mc.rst b/source/includes/common-minio-mc.rst
index 5915e03a..e0980d29 100644
--- a/source/includes/common-minio-mc.rst
+++ b/source/includes/common-minio-mc.rst
@@ -1,23 +1,8 @@
.. start-minio-mc-globals
-.. mc-cmd:: --debug
- :optional:
-
- Enables verbose output to the console.
+This command supports any of the :ref:`global flags `.
- For example:
-
- .. code-block:: shell
- :class: copyable
-
- mc --debug COMMAND
-
-.. mc-cmd:: --config-dir
- :optional:
-
- The path to a ``JSON`` formatted configuration file that
- :program:`mc` uses for storing data. See :ref:`mc-configuration` for
- more information on how :program:`mc` uses the configuration file.
+.. end-minio-mc-globals
.. start-minio-mc-json-globals
@@ -36,36 +21,6 @@
.. end-minio-mc-json-globals
-.. mc-cmd:: --no-color
- :optional:
-
- Disables the built-in color theme for console output. Useful for dumb
- terminals.
-
-.. mc-cmd:: --quiet
- :optional:
-
- Suppresses console output.
-
-.. mc-cmd:: --insecure
- :optional:
-
- Disables TLS/SSL certificate verification. Allows TLS connectivity to
- servers with invalid certificates. Exercise caution when using this
- option against untrusted S3 hosts.
-
-.. mc-cmd:: --version
- :optional:
-
- Displays the current version of :mc-cmd:`mc`.
-
-.. mc-cmd:: --help
- :optional:
-
- Displays a summary of command usage on the terminal.
-
-.. end-minio-mc-globals
-
.. start-minio-mc-no-flags
This command supports only global flags
diff --git a/source/reference/minio-mc.rst b/source/reference/minio-mc.rst
index 5bd5b7b4..24e2db47 100644
--- a/source/reference/minio-mc.rst
+++ b/source/reference/minio-mc.rst
@@ -433,6 +433,11 @@ All :ref:`commands ` support the following global options:
Displays the current version of :mc-cmd:`mc`.
+.. mc-cmd:: --help
+ :optional:
+
+ Displays a summary of command usage on the terminal.
+
.. toctree::
:titlesonly:
:hidden: