diff --git a/src/cocopp/__init__.py b/src/cocopp/__init__.py index ad8ac62..c91224c 100644 --- a/src/cocopp/__init__.py +++ b/src/cocopp/__init__.py @@ -304,7 +304,7 @@ def main(argv=None): (2 or more input arguments) for the input arguments altogether. """ - return rungeneric.main(argv=None) + return rungeneric.main(argv) class Interface: """collection of the most user-relevant modules, methods and data. diff --git a/src/cocopp/rungeneric.py b/src/cocopp/rungeneric.py index a963fb1..53995fc 100644 --- a/src/cocopp/rungeneric.py +++ b/src/cocopp/rungeneric.py @@ -87,7 +87,9 @@ def _split_short_opt_list(short_opt_list): def usage(): - print(main.__doc__) + from . import main as cocopp_main # the options are documented in cocopp.main + + print(cocopp_main.__doc__) def main(argv=None):