[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y ] [Search | Free Show | Home]

Best way to send parameters to my app

This is a blue board which means that it's for everybody (Safe For Work content only). If you see any adult content, please report it.

Thread replies: 19
Thread images: 1

Ok, /g/ ... I finished developing an application for my job. But today minutes before leaving we had a huge argument about sending parameters to the app. What I need is just an ID, and the flag --Lite. The guy I'm having the argument with wants to send me two strings:
123/2017 => File number
This is a test => Name of the file

I was thinking about executing my program like this:

myProgram.exe 6789 123/2017 |This is a test| --Lite


And the guy wants something like this:
myProgram.exe |789|123/2017|This is a test|Lite|

Given your experience, what would be the best way to send parameters to the app?

Thanks!
>>
>>59946644
Sauce
>>
>>59946644
DUDE

blue board!
>>
>>59946813
Emma watson allegedly
>>
Thanks OP, I just gave myself a promotion!
>>
I just got fired
>>
>>59946644
wtf i just got a promotion
>>
>>59946644
Don't use the bar symbol | to quote the filename, just use quotes.
>>
>>59946903
Made a mistake: It's a random string not the file's name.
>>
>>59946913
well, still don't use bar
>>
>>59946927
If I understand correctly ...

myProgram.exe 6789 123/2017 "This is a test" --Lite

would be a better solution, right?
>>
>>59946644
What does lite do? Probably your way
>>
PROMOTIONS
>>
>>59946955
--Lite is a flag. Basically, "load the lite version"
>>
>>59946981
Your's hands down
>>
File: 1193268508247.jpg (16KB, 320x375px) Image search: [Google]
1193268508247.jpg
16KB, 320x375px
PROMOTIONS
>>
myprogram.exe --port=6789 --day=123 --year=2017 --env=Lite "This is a test"
>>
>>59947015
Very nice answer. Thanks, anon.
>>
>>59947015
>--
>not /

not very cmdlet-y of you
Thread posts: 19
Thread images: 1


[Boards: 3 / a / aco / adv / an / asp / b / bant / biz / c / can / cgl / ck / cm / co / cock / d / diy / e / fa / fap / fit / fitlit / g / gd / gif / h / hc / his / hm / hr / i / ic / int / jp / k / lgbt / lit / m / mlp / mlpol / mo / mtv / mu / n / news / o / out / outsoc / p / po / pol / qa / qst / r / r9k / s / s4s / sci / soc / sp / spa / t / tg / toy / trash / trv / tv / u / v / vg / vint / vip / vp / vr / w / wg / wsg / wsr / x / y] [Search | Top | Home]

I'm aware that Imgur.com will stop allowing adult images since 15th of May. I'm taking actions to backup as much data as possible.
Read more on this topic here - https://archived.moe/talk/thread/1694/


If you need a post removed click on it's [Report] button and follow the instruction.
DMCA Content Takedown via dmca.com
All images are hosted on imgur.com.
If you like this website please support us by donating with Bitcoins at 16mKtbZiwW52BLkibtCr8jUg2KVUMTxVQ5
All trademarks and copyrights on this page are owned by their respective parties.
Images uploaded are the responsibility of the Poster. Comments are owned by the Poster.
This is a 4chan archive - all of the content originated from that site.
This means that RandomArchive shows their content, archived.
If you need information for a Poster - contact them.