Skip to content

Commit 2c40547

Browse files
authored
Merge pull request #29 from poettler-ric/argfile
quick solution to parse arguments from configuration file
2 parents 93fdc68 + 7a1641a commit 2c40547

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

example-provider.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -277,7 +277,7 @@ def stop(self):
277277

278278

279279
if __name__ == "__main__":
280-
parser = argparse.ArgumentParser(description=__doc__)
280+
parser = argparse.ArgumentParser(description=__doc__, fromfile_prefix_chars='@')
281281
parser.add_argument("--name", default="Alpha 2", help="Engine name to register")
282282
parser.add_argument("--engine", help="Shell command to launch UCI engine", required=True)
283283
parser.add_argument("--setoption", nargs=2, action="append", default=[], metavar=("NAME", "VALUE"), help="Set a custom UCI option")

0 commit comments

Comments
 (0)