39 lines
859 B
Python
39 lines
859 B
Python
#!/usr/bin/env python3
|
|
"""
|
|
yap yap yap
|
|
"""
|
|
import getopt
|
|
import sys
|
|
|
|
from skitter.usage import print_help
|
|
|
|
def main():
|
|
'''main'''
|
|
try:
|
|
opts, args = getopt.getopt(sys.argv[1:],
|
|
"hb:o:s:r:",
|
|
["help", "band=", "out-directory=", "squelch=", "rate="])
|
|
except getopt.GetoptError:
|
|
print_help()
|
|
sys.exit(2)
|
|
|
|
for o, a in opts:
|
|
if o in ('-h', '--help'):
|
|
print_help()
|
|
sys.exit()
|
|
|
|
if o in ('-b', '--band'):
|
|
print(f"band {a}") # debug
|
|
|
|
if o in ('-o', '--out-directory'):
|
|
print(f"dir {a}") # debug
|
|
|
|
if o in ('-s', '--squelch'):
|
|
print(f"squelch {a}") # debug
|
|
|
|
if o in ('-r', '--rate'):
|
|
print(f"rate {a}") # debug
|
|
|
|
if __name__ == '__main__':
|
|
main()
|