Jump to content




Commandline Input Parser Thingy


  • You cannot reply to this topic
No replies to this topic

#1 H4X0RZ

  • Members
  • 1,315 posts
  • LocationGermany

Posted 01 April 2015 - 06:58 PM

Well, I browsed my old files on my HDD, and I found a really old utility I made.
All it does is "parse" the arguments you give a program, and allow you to access them easier.

Here is the link: http://pastebin.com/zb5JMzbb

Using my utility, you don't have to make complicated "help pages", to explain what argument is at what position.
For example
rednetSend 1 2 Hello
could become
rednetSend -from 1 -to 2 -message Hello
or
rednetSend -to 2 -message Hello -from 1

Usage

Edited by Freack100, 01 April 2015 - 06:58 PM.






1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users