mirror of
https://github.com/2martens/uni.git
synced 2026-05-06 11:26:25 +02:00
[OE-Drucken] Finished CLI
Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
15
oe/Drucken/oeprint/oeprint.py
Executable file
15
oe/Drucken/oeprint/oeprint.py
Executable file
@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/python3
|
||||||
|
import argparse
|
||||||
|
|
||||||
|
|
||||||
|
def main():
|
||||||
|
"""Main function for oeprint"""
|
||||||
|
parser = argparse.ArgumentParser(description='Printing tool for Orientation Unit')
|
||||||
|
parser.add_argument('build', metavar='build', help='the identifier of the build')
|
||||||
|
parser.add_argument('prints', metavar='numberOfPrints', type=int, help='how often the build is printed')
|
||||||
|
parser.add_argument('--printer', dest='printer', help='a valid printer name like d116_sw', default='d116_sw')
|
||||||
|
arguments = parser.parse_args()
|
||||||
|
# TODO add actual functionality
|
||||||
|
|
||||||
|
if __name__ == '__main__':
|
||||||
|
main()
|
||||||
@ -1,2 +0,0 @@
|
|||||||
#!/bin/python
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user