Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9d9612 commit 3765d1dCopy full SHA for 3765d1d
1 file changed
scripts/fix_diffs.py
@@ -96,13 +96,17 @@ def main(fp, original_po_commit='HEAD'):
96
import sys
97
98
if len(sys.argv) < 2:
99
- print('Usage: python fix_diffs.py <po_file_path> <original_po_file_commit_hash>')
+ print('Usage:')
100
+ print('\tpython fix_diffs.py <po_file_path> [<original_po_file_commit>]')
101
+ print('Option:')
102
+ print('\t<original_po_file_commit>: The original .po file(s) commit record (default to HEAD).')
103
+ sys.exit(1)
104
105
fp = './' + sys.argv[1]
106
output_lines = None
107
if len(sys.argv) == 3:
- original_hash = sys.argv[2]
- output_lines = main(fp, original_hash)
108
+ original_commit = sys.argv[2]
109
+ output_lines = main(fp, original_commit)
110
else:
111
output_lines = main(fp)
112
0 commit comments