##// END OF EJS Templates
byteify-strings: add --version argument...
Raphaël Gomès -
r42929:11498aa9 default
parent child Browse files
Show More
@@ -278,6 +278,8 b' def editinplace(fname):'
278
278
279 def main():
279 def main():
280 ap = argparse.ArgumentParser()
280 ap = argparse.ArgumentParser()
281 ap.add_argument('--version', action='version',
282 version='Byteify strings 1.0')
281 ap.add_argument('-i', '--inplace', action='store_true', default=False,
283 ap.add_argument('-i', '--inplace', action='store_true', default=False,
282 help='edit files in place')
284 help='edit files in place')
283 ap.add_argument('--dictiter', action='store_true', default=False,
285 ap.add_argument('--dictiter', action='store_true', default=False,
@@ -4,6 +4,11 b''
4 > $PYTHON "$TESTDIR/../contrib/byteify-strings.py" "$@"
4 > $PYTHON "$TESTDIR/../contrib/byteify-strings.py" "$@"
5 > }
5 > }
6
6
7 Test version
8
9 $ byteify_strings --version
10 Byteify strings * (glob)
11
7 Test in-place
12 Test in-place
8
13
9 $ cat > testfile.py <<EOF
14 $ cat > testfile.py <<EOF
General Comments 0
You need to be logged in to leave comments. Login now