From 80e976a4ee6a8e673a9194aac7a5d8fabe7e02d2 Mon Sep 17 00:00:00 2001 From: Gergely Polonkai Date: Thu, 26 May 2016 19:44:31 +0200 Subject: [PATCH] Make repository path optional If not specified, the current directory will be used. --- git-sound.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/git-sound.py b/git-sound.py index 7c7aa03..b4e9209 100644 --- a/git-sound.py +++ b/git-sound.py @@ -267,7 +267,7 @@ class GitMIDI(MIDIFile): if __name__ == '__main__': parser = argparse.ArgumentParser(description='Voice of a Repo') - parser.add_argument('repository', type=str) + parser.add_argument('repository', type=str, nargs='?', default='.') parser.add_argument('--branch', type=str, default='master',