Skip to content
Snippets Groups Projects
Commit d7ec4a61 authored by David Douard's avatar David Douard
Browse files

cli: add support for --help on the 'identify' cli tool

parent 0815880a
No related branches found
Tags v0.0.37
No related merge requests found
......@@ -9,6 +9,8 @@ import sys
from functools import partial
from swh.core.cli import CONTEXT_SETTINGS
from swh.model import identifiers as pids
from swh.model.exceptions import ValidationError
from swh.model.from_disk import Content, Directory
......@@ -62,7 +64,7 @@ def identify_object(obj_type, follow_symlinks, obj):
return (obj, pid)
@click.command()
@click.command(context_settings=CONTEXT_SETTINGS)
@click.option('--dereference/--no-dereference', 'follow_symlinks',
default=True,
help='follow (or not) symlinks for OBJECTS passed as arguments '
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment