Skip to content

Commit 6e3dc1d

Browse files
committed
support help flag
1 parent 9792984 commit 6e3dc1d

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@ docker run -it -e ES=locahost -e INDEX=my-index -e FIELD=id deric/es-dedupe:late
1717
You can either override Docker commad or use ENV variable to pass arguments.
1818

1919
## Usage
20+
Use `-h/--help` to see supported options:
21+
```
22+
docker run --rm deric/es-dedupe:latest dedupe --help
23+
```
24+
2025
```
2126
python -u dedupe.py -H localhost -P 9200 -i exact-index-name -f Uuid > es_dedupe.log
2227
```

dedupe.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ def print_stats(msg, stats, args):
614614
if (__name__ == "__main__"):
615615
import argparse
616616

617-
parser = argparse.ArgumentParser(description="Elasticsearch dupe deleter")
617+
parser = argparse.ArgumentParser(description="Elastic duplicates deleter",add_help=True)
618618
parser.add_argument("-a", "--all",
619619
action="store_true", dest="all", default=True,
620620
help="All indexes from given date till today")

0 commit comments

Comments
 (0)