Check a.o
This commit is contained in:
parent
3604c514ea
commit
fd92a9d998
1 changed files with 8 additions and 7 deletions
|
@ -455,17 +455,18 @@ if __name__ == "__main__":
|
||||||
parser.add_argument(
|
parser.add_argument(
|
||||||
"--files",
|
"--files",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="Also download all files",
|
help="Download all files",
|
||||||
)
|
)
|
||||||
|
|
||||||
a = parser.parse_args()
|
a = parser.parse_args()
|
||||||
ts = str(datetime.strftime(datetime.now(), "%m-%d-%Y_%H%M%S"))
|
ts = str(datetime.strftime(datetime.now(), "%m-%d-%Y_%H%M%S"))
|
||||||
sep_str = "*" * 24
|
sep_str = "*" * 24
|
||||||
|
|
||||||
if a.files and a.o is None:
|
if a.o is None and a.files:
|
||||||
print("If you specify --files you also need to specify an output directory with -o")
|
print("If you specify --files you also need to specify an output directory with -o")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
||||||
|
if a.o is not None:
|
||||||
out_dir_parent = os.path.abspath(
|
out_dir_parent = os.path.abspath(
|
||||||
os.path.expanduser(os.path.expandvars(a.o))
|
os.path.expanduser(os.path.expandvars(a.o))
|
||||||
)
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue