diff options
author | Karl Berry <karl@freefriends.org> | 2022-02-27 23:41:11 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2022-02-27 23:41:11 +0000 |
commit | 8027f287eb46d487a0e379911bdbc4d6c2bf44e4 (patch) | |
tree | b6e3aeebab3f5c2560ae1ab892b76cca269eb05e /Master/texmf-dist/asymptote/GUI/xasyArgs.py | |
parent | a4855ce49e2101557c17547c2d22594e1b2a215c (diff) |
asymptote 2.78 support files
git-svn-id: svn://tug.org/texlive/trunk@62265 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/asymptote/GUI/xasyArgs.py')
-rwxr-xr-x | Master/texmf-dist/asymptote/GUI/xasyArgs.py | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/Master/texmf-dist/asymptote/GUI/xasyArgs.py b/Master/texmf-dist/asymptote/GUI/xasyArgs.py index 045f4bc6692..b9e1518f1e8 100755 --- a/Master/texmf-dist/asymptote/GUI/xasyArgs.py +++ b/Master/texmf-dist/asymptote/GUI/xasyArgs.py @@ -1,23 +1,32 @@ #!/usr/bin/env python3 import argparse import xasyVersion -import PyQt5.QtCore as Qc +import PyQt5.QtCore as QtCore # Add arguments here. def parseArgs(args): parser = argparse.ArgumentParser(args) - parser.add_argument('-p', '--asypath', help='Custom Asymptote asy executable') - parser.add_argument('-v', '--version', help='Version number', action='version', + parser.add_argument('-p', '-asypath', '--asypath', + help='Custom path to asy executable') + parser.add_argument('-v', '-version', '--version', + help='Version number', action='version', version='xasy v{0}'.format(xasyVersion.xasyVersion)) - parser.add_argument('-l', '--language', help='language') - parser.add_argument('-x', '--mag', help='Magnification. Defaults to 1', default=1, type=float) - + parser.add_argument('-l', '-language', '--language', + help='language') + parser.add_argument('-x', '-mag', '--mag', + help='Initial magnification. Defaults to 1', + default=1, type=float) + parser.add_argument('-render', '--render', + help='Number of pixels per bp in 3D rendered bitmaps', + default=None, type=float) parser.add_argument( - 'filename', help='Filename to load. If empty, initializes empty xasy canvas.', nargs='?', default=None) + 'filename', + help='Filename to load (if omitted, initialize blank canvas)', + nargs='?', default=None) return parser.parse_args() def getArgs(): - return parseArgs(Qc.QCoreApplication.arguments()) + return parseArgs(QtCore.QCoreApplication.arguments()) |