Document the -n flag.
David Blume

David Blume commited on 2017-02-17 00:09:43
Showing 2 changed files, with 2 additions and 2 deletions.

... ...
@@ -23,7 +23,7 @@ Of course, issue the command with -h or --help to learn more.
23 23
       -h, --help            show this help message and exit
24 24
       -c CHANGELIST, --changelist CHANGELIST
25 25
                             Changelist to use
26
-      -n, --preview
26
+      -n, --preview         Preview only, don't change any files
27 27
 
28 28
 ### So you put a Perforce script in a Git repo?
29 29
 
... ...
@@ -92,7 +92,7 @@ def do_diff(preview, changelist, d):
92 92
 if __name__ == '__main__':
93 93
     parser = ArgumentParser(description='Similar to "p4 reconcile"')
94 94
     parser.add_argument('-c', '--changelist', help='Changelist to use')
95
-    parser.add_argument('-n', '--preview', action='store_true')
95
+    parser.add_argument('-n', '--preview', action='store_true', help="Preview only, don't change any files")
96 96
     parser.add_argument('source_dir', help='The newer directory outside perforce')
97 97
     parser.add_argument('p4_dir', help='The perforce directory to be modified')
98 98
     args = parser.parse_args()
99 99