diff --git a/Program.cs b/Program.cs index 34caaa4..83b7d6f 100644 --- a/Program.cs +++ b/Program.cs @@ -7,10 +7,23 @@ namespace kot { static void Main(string[] args) { + if (args.Length < 1) + { + Console.WriteLine("missing input argument, pass \'help\' for more info"); + System.Environment.Exit(0); + } + if (args[0] == "help") + { + Console.WriteLine(@"maek ascii !! + kot +input argument /must/ be of types: {jpg, jpeg, png, bmp,}"); + System.Environment.Exit(0); + } + string path = args[0]; string final = ""; string[] scale = {".",",",":",";","+","*","?","%","S","#","@"}; //Array.Reverse(scale); - var f = new Bitmap("./kurisu.jpg"); + var f = new Bitmap(path); for (int i = 0; i < f.Height; i += 30) { for (int z = 0; z < f.Width; z += 30)