feat(Spotify): Add argument parser

pull/250/head
Daniel Voogsgerd 2019-03-27 16:33:15 +01:00
parent faa79ea216
commit ed358ef024
1 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,5 @@
#!/usr/bin/env python3 #!/usr/bin/env python3
import argparse
import sys import sys
import signal import signal
import gi import gi
@ -52,7 +53,14 @@ def signal_handler(sig, frame):
sys.exit(0) sys.exit(0)
def parse_arguments():
parser = argparse.ArgumentParser()
return parser.parse_args()
def main(): def main():
arguments = parse_arguments()
manager = Playerctl.PlayerManager() manager = Playerctl.PlayerManager()
loop = GLib.MainLoop() loop = GLib.MainLoop()