Added argcomplete to video_autoreduce scripts.
This commit is contained in:
parent
98f9a57ea1
commit
4ef0772105
@ -2,6 +2,7 @@
|
|||||||
# video_autoreduce.py
|
# video_autoreduce.py
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import argcomplete
|
||||||
import colorama
|
import colorama
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@ -476,6 +477,9 @@ def main():
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help='enable debug mode for printing additional error messages')
|
help='enable debug mode for printing additional error messages')
|
||||||
|
|
||||||
|
# Enable autocomplete for argparse
|
||||||
|
argcomplete.autocomplete(parser)
|
||||||
|
|
||||||
# Parse command line arguments
|
# Parse command line arguments
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
@ -2,6 +2,7 @@
|
|||||||
# video_autoreduce_rename.py
|
# video_autoreduce_rename.py
|
||||||
|
|
||||||
import argparse
|
import argparse
|
||||||
|
import argcomplete
|
||||||
import colorama
|
import colorama
|
||||||
import os
|
import os
|
||||||
import re
|
import re
|
||||||
@ -117,6 +118,9 @@ def main():
|
|||||||
action='store_true',
|
action='store_true',
|
||||||
help='enable debug mode for printing additional messages')
|
help='enable debug mode for printing additional messages')
|
||||||
|
|
||||||
|
# Enable autocomplete for argparse
|
||||||
|
argcomplete.autocomplete(parser)
|
||||||
|
|
||||||
# Parse command line arguments
|
# Parse command line arguments
|
||||||
args = parser.parse_args()
|
args = parser.parse_args()
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user