Skip to content

Commit

Permalink
fix import_module position
Browse files Browse the repository at this point in the history
  • Loading branch information
altescy committed Feb 21, 2021
1 parent 5c8d02e commit e450730
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pdpcli/commands/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ def main(prog: str = None):
args = parser.parse_args()
func = getattr(args, "func", None)

colt.import_modules(args.module)

if func is not None:
func(args)
else:
parser.parse_args(["--help"])

colt.import_modules(args.module)

0 comments on commit e450730

Please sign in to comment.