Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ronny Eichler
dataman
Commits
784c9349
Commit
784c9349
authored
Mar 05, 2017
by
Ronny Eichler
Browse files
Fix default path handling error
parent
5618492c
Changes
1
Hide whitespace changes
Inline
Side-by-side
dataman/dataman.py
View file @
784c9349
...
...
@@ -9,7 +9,7 @@ import argparse
from
.lib.constants
import
LOG_LEVEL_VERBOSE
__version__
=
0.
0
1
__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
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment