mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 01:04:59 +00:00
handle no args properly
This commit is contained in:
parent
ed6ceae544
commit
5e593eb631
2 changed files with 2 additions and 2 deletions
|
@ -6,7 +6,7 @@ from aider.coder import Coder
|
||||||
|
|
||||||
|
|
||||||
def main(args=None):
|
def main(args=None):
|
||||||
if not args:
|
if args is None:
|
||||||
args = sys.argv[1:]
|
args = sys.argv[1:]
|
||||||
|
|
||||||
load_dotenv()
|
load_dotenv()
|
||||||
|
|
|
@ -13,7 +13,7 @@ class TestMain(TestCase):
|
||||||
with open(os.devnull, "r") as dev_null:
|
with open(os.devnull, "r") as dev_null:
|
||||||
save_stdin = sys.stdin
|
save_stdin = sys.stdin
|
||||||
sys.stdin = dev_null
|
sys.stdin = dev_null
|
||||||
main()
|
main([])
|
||||||
sys.stdin = save_stdin
|
sys.stdin = save_stdin
|
||||||
|
|
||||||
def test_main_with_empty_dir_new_file(self):
|
def test_main_with_empty_dir_new_file(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue