File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -96,13 +96,17 @@ def main(fp, original_po_commit='HEAD'):
96
96
import sys
97
97
98
98
if len (sys .argv ) < 2 :
99
- print ('Usage: python fix_diffs.py <po_file_path> <original_po_file_commit_hash>' )
99
+ print ('Usage:' )
100
+ print ('\t python 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 )
100
104
101
105
fp = './' + sys .argv [1 ]
102
106
output_lines = None
103
107
if len (sys .argv ) == 3 :
104
- original_hash = sys .argv [2 ]
105
- output_lines = main (fp , original_hash )
108
+ original_commit = sys .argv [2 ]
109
+ output_lines = main (fp , original_commit )
106
110
else :
107
111
output_lines = main (fp )
108
112
You can’t perform that action at this time.
0 commit comments