Skip to content

Commit

Permalink
Fix missing args in main method (#12)
Browse files Browse the repository at this point in the history
* installation instruction for GIT

* default values for sys.argv provided
  • Loading branch information
grzanka authored Jun 15, 2016
1 parent bf1f71a commit c9e8c31
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,10 @@ Development version ::
pip install -i https://testpypi.python.org/pypi pymchelper


of directly from GIT::

pip install versioneer
pip install git+https://github.com/DataMedSci/pymchelper.git

Documentation
=============
Expand Down
2 changes: 1 addition & 1 deletion pymchelper/bdo2txt.py
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ def merge_many(input_file_list,
merge_list(group_with_same_core, core_name + ".txt", conv_names, nan)


def main(args):
def main(args=sys.argv[1:]):
parser = argparse.ArgumentParser()
parser.add_argument("inputfile",
help='input filename, file list or pattern', type=str)
Expand Down

0 comments on commit c9e8c31

Please sign in to comment.