added --allow-multiple option
This commit is contained in:
parent
7067c51056
commit
6efb79e7f6
1 changed files with 3 additions and 1 deletions
2
dosage
2
dosage
|
@ -78,6 +78,7 @@ def setupOptions():
|
|||
parser.add_argument('--no-downscale', action='store_false', dest='allowdownscale', help='prevent downscaling when using html or rss handler')
|
||||
parser.add_argument('-p', '--parallel', action='store', type=int, default=1, help='fetch comics in parallel. Specify the number of connections')
|
||||
parser.add_argument('--adult', action='store_true', help='confirms that you are old enough to view adult content')
|
||||
parser.add_argument('--allow-multiple', action='store_true', help='allows multiple instances to run at the same time. Use if you know what you are doing.')
|
||||
# used for development testing prev/next matching
|
||||
parser.add_argument('--dry-run', action='store_true', help=argparse.SUPPRESS)
|
||||
# multimatch is only used for development, eg. testing if all comics of a scripted plugin are working
|
||||
|
@ -213,6 +214,7 @@ def run(options):
|
|||
"""Execute comic commands."""
|
||||
setOutputInfo(options)
|
||||
# ensure only one instance of dosage is running
|
||||
if not options.allow_multiple:
|
||||
me = singleton.SingleInstance()
|
||||
if options.version:
|
||||
return displayVersion(options.verbose)
|
||||
|
|
Loading…
Reference in a new issue