diff --git a/quart/cli.py b/quart/cli.py
index <HASH>..<HASH> 100644
--- a/quart/cli.py
+++ b/quart/cli.py
@@ -53,7 +53,10 @@ class ScriptInfo:
 
                 module_path = Path(module_name).resolve()
                 sys.path.insert(0, str(module_path.parent))
-                import_name = module_path.with_suffix('').name
+                if module_path.is_file():
+                    import_name = module_path.with_suffix('').name
+                else:
+                    import_name = module_path.name
                 try:
                     module = import_module(import_name)
                 except ModuleNotFoundError as error:
Bugfix cli module name parsing

Quart accepts the Gunicorn format ``file.ext:application`` but should
also support the Flask format ``module_a.module_b:application``. To
allow for both the code simply checks if the resolved path is a file
then Gunicorn and if not Flask. This should help match expected Flask
usage.