feat(Spotify): Add argument parser

This commit is contained in:
Daniel Voogsgerd 2019-03-27 16:33:15 +01:00
parent faa79ea216
commit ed358ef024

View File

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