banana/dec2ribes.py
2020-08-31 18:28:53 +02:00

11 lines
402 B
Python
Executable file

#!/usr/bin/env python3
import argparse
import banana
if __name__ == "__main__":
parser = argparse.ArgumentParser(description="Convert dec number to ribes")
parser.add_argument("num", help="Number to be converted", type=int)
parser.add_argument("--minlength", help="Set minimum length", type=int)
args = parser.parse_args()
print(banana.dec2banana(args.num, 1, 1, args.minlength))