Commit 702351fd authored by Morten Gjerding's avatar Morten Gjerding

Fix supplying extra arguments to gpaw python

parent 991adea3
Pipeline #100271291 failed with stage
in 3 minutes and 21 seconds
......@@ -32,6 +32,7 @@ def hook(parser, args):
help='Run on N CPUs.')
args, extra = parser.parse_known_args(args)
if extra:
assert not args.arguments
args.arguments = extra
if args.command == 'python':
import argparse
import runpy
import sys
......@@ -19,7 +18,7 @@ class CLICommand:
parser.add_argument('arguments', metavar='ARG',
help='Arguments passed to program in '
def run(args):
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment