From 1f452527e58f4078c15cefb88bbbe9061e48f1ae Mon Sep 17 00:00:00 2001 From: Bastian Kleineidam Date: Sun, 19 Jan 2014 13:16:03 +0100 Subject: [PATCH] Expand user in basepath --- doc/changelog.txt | 7 +++++++ dosage | 5 +++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/doc/changelog.txt b/doc/changelog.txt index 7e3421e36..f40526a37 100644 --- a/doc/changelog.txt +++ b/doc/changelog.txt @@ -1,3 +1,10 @@ +Dosage 2.12 (released xx.xx.2014) + +Changes: +- cmdline: The --basepath option now replaces "~" or "~user" with the + users home directory. + + Dosage 2.11 (released 15.1.2014) Features: diff --git a/dosage b/dosage index 17e110d8e..6c3a6ef9c 100755 --- a/dosage +++ b/dosage @@ -482,8 +482,9 @@ def warn_adult(scraperclass): def main(): """Parse options and execute commands.""" try: - parser = setupOptions() - res = run(parser.parse_args()) + options = setupOptions().parse_args() + options.basepath = os.path.expanduser(options.basepath) + res = run(options) except KeyboardInterrupt: print("Aborted.") res = 1