Commit 784c9349 authored by Ronny Eichler's avatar Ronny Eichler
Browse files

Fix default path handling error

parent 5618492c
......@@ -9,7 +9,7 @@ import argparse
from .lib.constants import LOG_LEVEL_VERBOSE
__version__ = 0.01
__version__ = 0.1
NO_EXIT_CONFIRMATION = True
LOG_LEVEL = logging.INFO
......@@ -30,7 +30,7 @@ class DataMan(cmd.Cmd):
parser = argparse.ArgumentParser('Recording statistics', prefix_chars='+/')
parser.add_argument('path', help='Relative or absolute path to directory',
default='.', nargs='?')
cli_args = parser.parse_args(line.split(' '))
cli_args = parser.parse_args(line.split(' ') if line else '')
path = cli_args.path
import dataman.lib.dirstats as ds
......@@ -40,7 +40,7 @@ class DataMan(cmd.Cmd):
parser = argparse.ArgumentParser('Recording statistics', prefix_chars='+/')
parser.add_argument('path', help='Relative or absolute path to directory',
default='.', nargs='?')
cli_args = parser.parse_args(line.split(' '))
cli_args = parser.parse_args(line.split(' ') if line else '')
path = cli_args.path
import dataman.lib.dirstats as ds
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment