Skip to content

Commit 41e12e0

Browse files
committed
moved output template docs from epilog to -o help
1 parent d3cbd02 commit 41e12e0

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

animDump.py

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -710,25 +710,24 @@ def output_filename(input_filename):
710710

711711
parser = argparse.ArgumentParser(
712712
description='Manipulate Secondlife .anim files',
713-
fromfile_prefix_chars='@', formatter_class=argparse.RawDescriptionHelpFormatter,
714-
epilog="""
715-
output file pattern flags:
716-
%n: input file name
717-
%p: input file directory
718-
%%: literal '%'
719-
file extensions will be appended automatically
720-
""")
713+
fromfile_prefix_chars='@', formatter_class=argparse.RawTextHelpFormatter)
721714

722715
parser.add_argument('files', nargs='+', help='anim files to dump or process')
723716
parser.add_argument('--verbose', '-v', action='count', default=0)
724717
parser.add_argument('--no-sort', '-U', action='store_false', dest='sort',
725718
help="when printing joints with -v, show in file order rather than abc order")
726719
parser.add_argument('--markdown', '--md', action='store_true', help="output in markdown table")
727720
parser.add_argument('--outputfile-pattern', '-o',
728-
help='Output anim file path/name, see \'output file pattern flags\' below for details')
721+
help="""Output anim file path/name, with template substitution:
722+
%%n: input file name
723+
%%p: input file directory
724+
%%%%: literal '%%'
725+
File extension will be appended automatically""")
729726
parser.add_argument('--time-scale', '--tscale', '--speed', '-s', action=AppendObjectAction,
730727
dest='actions', func=SpeedAnimation, nargs=1, type=float,
731-
help = "Adjust duration by the given factor eg 2.0 for half-speed/double duration, or 0.5 for double speed/half duration")
728+
help = """Adjust duration by the given factor eg:
729+
2.0 for half-speed/double duration, or
730+
0.5 for double speed/half duration""")
732731
parser.add_argument('--frame-rate', '--fps', action=AppendObjectAction,
733732
dest='actions', func=SetFrameRate, nargs=1, type=int)
734733
parser.add_argument('--offset', '--adjust', action=AppendObjectAction,

0 commit comments

Comments
 (0)