doomeer / kalandralang

A programming language for Path of Exile crafting recipes.
MIT License
58 stars 4 forks source link

Added onlycosts flag #12

Closed AR-234 closed 2 years ago

AR-234 commented 2 years ago

Adds --onlycosts flag, items are not displayed after being crafted, nor the profit after every item. Does only show the average cost

Usefull for large counts of crafts to save time because the console doesn't need to render a lot of crap or diskspace in case of a log file.

Use only if you know the craft always gives the item you want..

doomeer commented 2 years ago

Thanks! Indeed this sounds like a very helpful addition for large batches, especially with the recent optimisations that make it reasonable to launch with large numbers such as --count 10000.

However, I think I'd like to do it myself, because I have some ideas to make it even better. Instead of --onlycosts, I propose to implement the following options:

Your --onlycosts could be achieved with --no-item --no-total --no-histogram.

What do you think? I think I'll start working on this soon.

doomeer commented 2 years ago

I implemented my proposal, except that:

I think that --short (which can be abbreviated as -s) gives a nice middle-ground to still see progress, while --summary (which can be abbreviated as -S) should solve your use case.

AR-234 commented 2 years ago

Sounds awesome, thanks. Closed ❤️