mirror of
https://github.com/frappe/bench.git
synced 2025-01-27 08:18:25 +00:00
fix: Handle no args passed in CLI
This commit is contained in:
parent
1237d604ce
commit
31e4aeeab8
@ -30,10 +30,9 @@ def cli():
|
|||||||
logger = setup_logging() or logging.getLogger(bench.PROJECT_NAME)
|
logger = setup_logging() or logging.getLogger(bench.PROJECT_NAME)
|
||||||
logger.info(command)
|
logger.info(command)
|
||||||
|
|
||||||
if sys.argv[1] not in ("src", ):
|
if len(sys.argv) > 1 and sys.argv[1] not in ("src", ):
|
||||||
check_uid()
|
check_uid()
|
||||||
change_uid()
|
change_uid()
|
||||||
|
|
||||||
change_dir()
|
change_dir()
|
||||||
|
|
||||||
if is_dist_editable(bench.PROJECT_NAME) and len(sys.argv) > 1 and sys.argv[1] != "src" and not get_config(".").get("developer_mode"):
|
if is_dist_editable(bench.PROJECT_NAME) and len(sys.argv) > 1 and sys.argv[1] != "src" and not get_config(".").get("developer_mode"):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user