Skip to content

Commit 6f6924f

Browse files
committed
chore: add --version flag to support version check
Signed-off-by: Gang Li <ligangty@users.noreply.github.com>
1 parent c1834e8 commit 6f6924f

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

charon/cmd/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
See the License for the specific language governing permissions and
1414
limitations under the License.
1515
"""
16-
from click import group
16+
from click import group, version_option, pass_context
1717
from charon.cmd.cmd_upload import upload
1818
from charon.cmd.cmd_delete import delete
1919
from charon.cmd.cmd_index import index
@@ -22,7 +22,9 @@
2222

2323

2424
@group()
25-
def cli():
25+
@version_option()
26+
@pass_context
27+
def cli(ctx):
2628
"""Charon is a tool to synchronize several types of
2729
artifacts repository data to Red Hat Ronda
2830
service (maven.repository.redhat.com).

0 commit comments

Comments
 (0)