mirror of
https://github.com/instaloader/instaloader.git
synced 2024-08-17 12:19:38 +02:00
Allow reading arguments from file
Squashed commit of the following (pr #161): commit58235a99b0
Author: AndCycle <andcycle@andcycle.idv.tw> Date: Thu Aug 16 17:57:26 2018 +0800 doc: proper fix rst syntax commit6620e3583c
Author: AndCycle <andcycle@andcycle.idv.tw> Date: Thu Aug 16 17:29:25 2018 +0800 doc: fix syntax commit7a048a3c04
Author: AndCycle <andcycle@andcycle.idv.tw> Date: Thu Aug 16 17:09:26 2018 +0800 doc: add info about read args from file. commitc4ceaf9636
Author: AndCycle <andcycle@andcycle.idv.tw> Date: Thu Aug 16 17:05:07 2018 +0800 alter `fromfile_prefix_chars` to plus sign to avoid conflict. commitd469b52b95
Author: AndCycle <andcycle@andcycle.idv.tw> Date: Mon Aug 6 19:10:23 2018 +0800 * Allow reading arguments from file function referenced from instagram-scraper, which provide a convenient way to hide sensitive information.
This commit is contained in:
parent
e00d77c234
commit
9258b84695
@ -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
|
||||
|
||||
|
@ -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 '
|
||||
|
Loading…
Reference in New Issue
Block a user