fixed missing requirement; incorrect import

This commit is contained in:
Eric Van Horn 2019-03-28 21:24:09 -05:00 committed by Evgeny Ezhov
parent 460160ed04
commit d38aded83d
2 changed files with 2 additions and 2 deletions

2
wdc
View file

@ -306,7 +306,7 @@ if __name__ == "__main__":
parser = argparse.ArgumentParser(prog='wdc', formatter_class=Formatter, epilog=epilog, usage=usage)
parser.add_argument("action", help=actions_help, choices=actions)
from webdav.client import __version__ as version
from webdav3.client import __version__ as version
version_text = "{name} {version}".format(name="%(prog)s", version=version)
parser.add_argument("-v", '--version', action='version', version=version_text)
parser.add_argument("-r", "--root", help="example: dir1/dir2")