acezen commented on code in PR #616:
URL: https://github.com/apache/incubator-graphar/pull/616#discussion_r1817983355


##########
cli/src/graphar_cli/graphar_cli.py:
##########
@@ -0,0 +1,187 @@
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements.  See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership.  The ASF licenses this file
+# to you under the Apache License, Version 2.0 (the
+# "License"); you may not use this file except in compliance
+# with the License.  You may obtain a copy of the License at
+#
+#   http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing,
+# software distributed under the License is distributed on an
+# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+# KIND, either express or implied.  See the License for the
+# specific language governing permissions and limitations
+# under the License.
+
+import json
+from logging import getLogger
+from pathlib import Path
+from typing import List
+
+import typer
+import yaml
+
+from ._core import (  # type: ignore  # noqa: PGH003
+    check_edge,
+    check_graph,
+    check_vertex,
+    do_import,
+    get_edge_count,
+    get_edge_types,
+    get_vertex_count,
+    get_vertex_types,
+    show_edge,
+    show_graph,
+    show_vertex,
+)
+from .config import ImportConfig
+from .importer import validate
+from .logging import setup_logging
+
+app = typer.Typer(
+    help="GraphAr Cli",
+    no_args_is_help=True,
+    add_completion=False,
+    context_settings={"help_option_names": ["-h", "--help"]},
+)
+
+setup_logging()
+logger = getLogger(__name__)
+
+
+@app.command(
+    context_settings={"help_option_names": ["-h", "--help"]},
+    help="Show the metadata",
+    no_args_is_help=True,
+)
+def show(
+    path: str = typer.Option(None, "--path", "-f", help="Path to the GraphAr 
config file"),

Review Comment:
   why the full parameter is `--path` but the short is `-f`?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@graphar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@graphar.apache.org
For additional commands, e-mail: commits-h...@graphar.apache.org

Reply via email to