From a2f2fa0354c1f0485563661ec06f9c5db2195bbb Mon Sep 17 00:00:00 2001 From: Evgeniy Alekseev Date: Wed, 20 Oct 2021 02:15:59 +0300 Subject: [PATCH] add ability to read argument list from file --- src/ahriman/application/ahriman.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ahriman/application/ahriman.py b/src/ahriman/application/ahriman.py index 005f1e34..d7a45079 100644 --- a/src/ahriman/application/ahriman.py +++ b/src/ahriman/application/ahriman.py @@ -51,7 +51,8 @@ def _parser() -> argparse.ArgumentParser: :return: command line parser for the application """ parser = argparse.ArgumentParser(prog="ahriman", description="ArcH Linux ReposItory MANager", - formatter_class=_formatter) + epilog="Argument list can also be read from file by using @ prefix.", + fromfile_prefix_chars="@", formatter_class=_formatter) parser.add_argument("-a", "--architecture", help="target architectures (can be used multiple times)", action="append") parser.add_argument("-c", "--configuration", help="configuration path", type=Path, default=Path("/etc/ahriman.ini"))