[erlang-questions] Re: escript question

Bengt Kleberg bengt.kleberg@REDACTED
Wed Apr 6 08:46:25 CEST 2011


Greetings,

I have not solved your problem. For instance, I do not understand what
works and what does not work. However, I did notice that your code looks
different from what I would write. So if you are interested, this is how
I would do main/1:

main(ParamList) ->
	case ParamList
	of [AppID, NodeID] ->
		generate_files(AppID, NodeID)
	; _Else ->
		show_usage(),
		erlang:halt(1)
	end.


bengt

On Wed, 2011-04-06 at 01:30 +0200, Mike Oxford wrote:
> This simple escript (teaching myself) works for some things, and not
> for others.
> 
> 
> https://gist.github.com/899768
> 
> 
> Can anyone figure out why?  I'm at a loss.
> 
> 
> Thanks in advance!
> 
> 
> -mox
> 
> 
> 
> 




More information about the erlang-questions mailing list