Make repository path optional
If not specified, the current directory will be used.
This commit is contained in:
parent
84c9da2120
commit
80e976a4ee
@ -267,7 +267,7 @@ class GitMIDI(MIDIFile):
|
|||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
parser = argparse.ArgumentParser(description='Voice of a Repo')
|
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',
|
parser.add_argument('--branch',
|
||||||
type=str,
|
type=str,
|
||||||
default='master',
|
default='master',
|
||||||
|
Loading…
Reference in New Issue
Block a user