Skip to content

Commit

Permalink
chore: add --version flag to support version check
Browse files Browse the repository at this point in the history
Signed-off-by: Gang Li <[email protected]>
  • Loading branch information
ligangty committed Dec 17, 2024
1 parent c1834e8 commit 6f6924f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions charon/cmd/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
See the License for the specific language governing permissions and
limitations under the License.
"""
from click import group
from click import group, version_option, pass_context
from charon.cmd.cmd_upload import upload
from charon.cmd.cmd_delete import delete
from charon.cmd.cmd_index import index
Expand All @@ -22,7 +22,9 @@


@group()
def cli():
@version_option()
@pass_context
def cli(ctx):
"""Charon is a tool to synchronize several types of
artifacts repository data to Red Hat Ronda
service (maven.repository.redhat.com).
Expand Down

0 comments on commit 6f6924f

Please sign in to comment.