[Reproducible-commits] [diffoscope] 04/06: Display default values in help
Jérémy Bobbio
lunar at moszumanska.debian.org
Wed Sep 2 12:47:15 UTC 2015
This is an automated email from the git hooks/post-receive script.
lunar pushed a commit to branch master
in repository diffoscope.
commit c581a65af6800425eb6f5f772a50cd5e520074d8
Author: Jérémy Bobbio <lunar at debian.org>
Date: Wed Sep 2 10:45:11 2015 +0000
Display default values in help
---
diffoscope/__main__.py | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/diffoscope/__main__.py b/diffoscope/__main__.py
index eba57ec..3840a4f 100644
--- a/diffoscope/__main__.py
+++ b/diffoscope/__main__.py
@@ -52,11 +52,14 @@ def create_parser():
help='write plain text output to given file (use - for stdout)')
parser.add_argument('--max-report-size', metavar='BYTES',
dest='max_report_size', type=int,
- help='maximum bytes written in report')
+ help='maximum bytes written in report (default: %d)' %
+ Config.general.max_report_size)
parser.add_argument('--max-diff-block-lines', dest='max_diff_block_lines', type=int,
- help='maximum number of lines per diff block')
+ help='maximum number of lines per diff block (default: %d)' %
+ Config.general.max_diff_block_lines)
parser.add_argument('--max-diff-input-lines', dest='max_diff_input_lines', type=int,
- help='maximum number of lines fed to diff')
+ help='maximum number of lines fed to diff (default: %d)' %
+ Config.general.max_diff_input_lines)
parser.add_argument('--css', metavar='url', dest='css_url',
help='link to an extra CSS for the HTML report')
parser.add_argument('file1', help='first file to compare')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/diffoscope.git
More information about the Reproducible-commits
mailing list