diff --git a/docs/cli-options.rst b/docs/cli-options.rst index 2b6e6fc..1b585e9 100644 --- a/docs/cli-options.rst +++ b/docs/cli-options.rst @@ -192,3 +192,20 @@ Miscellaneous Options Disable user interaction, i.e. do not print messages (except errors) and fail if login credentials are needed but not given. This is handy for running :ref:`instaloader-as-cronjob`. + +.. option:: +args.txt + + Read arguments from file `args.txt`, a shortcut to provide argument from + file rather than command-line. This provide a convient way to hide login + info from CLI. and also can use for simplify managment of long arguments. + + .. note:: + + text file should separate arg with line break. + + args.txt example:: + + --login MYUSENAME + --password MYPASSWORD + --fast-update + diff --git a/instaloader/__main__.py b/instaloader/__main__.py index a8f5aae..f340c6d 100644 --- a/instaloader/__main__.py +++ b/instaloader/__main__.py @@ -207,7 +207,8 @@ def main(): parser = ArgumentParser(description=__doc__, add_help=False, usage=usage_string(), epilog="Report issues at https://github.com/instaloader/instaloader/issues. " "The complete documentation can be found at " - "https://instaloader.github.io/.") + "https://instaloader.github.io/.", + fromfile_prefix_chars='+') g_what = parser.add_argument_group('What to Download', 'Specify a list of profiles or #hashtags. For each of these, Instaloader '