Make repository path optional

If not specified, the current directory will be used.
This commit is contained in:
Gergely Polonkai 2016-05-26 19:44:31 +02:00
parent 84c9da2120
commit 80e976a4ee

View File

@ -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',