1
0
mirror of https://github.com/2martens/uni.git synced 2026-05-06 19:36:26 +02:00

[OE-Drucken] Finished CLI

Signed-off-by: Jim Martens <github@2martens.de>
This commit is contained in:
2015-04-30 09:08:07 +02:00
parent 93d04304ca
commit db1c873563
3 changed files with 15 additions and 2 deletions

15
oe/Drucken/oeprint/oeprint.py Executable file
View 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()

View File

@ -1,2 +0,0 @@
#!/bin/python