forked from itec/banana
14 lines
699 B
Python
Executable file
14 lines
699 B
Python
Executable file
#!/usr/bin/env python3
|
|
import argparse
|
|
import banana
|
|
|
|
if __name__ == "__main__":
|
|
parser = argparse.ArgumentParser(description="Convert dec number to banana")
|
|
parser.add_argument("num", help="Number to be converted", type=int)
|
|
parser.add_argument("--dictstart", help="Set starting dictionary", type=int)
|
|
parser.add_argument("--shiftend", help="Set shift for ending dictionary", type=int)
|
|
parser.add_argument("--minlength", help="Set minimum length", type=int)
|
|
parser.add_argument("--dictionary", help="Set dictionary", type=list, nargs='+')
|
|
args = parser.parse_args()
|
|
|
|
print(banana.dec2banana(args.num, args.dictstart, args.shiftend, args.minlength, args.dictionary))
|