• Post Reply Bookmark Topic Watch Topic
  • New Topic

one stupid spec question...

 
YungSheng Chang
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In instruction, it provides the following command:
java -jar <path_and_filename> [<mode>]

Does this mean I should leave [] there?
For example, to initiate a client, is it 1 or 2?
1. java -jar runme.jar []
2. java -jar runme.jar
Same, to run a server, 1 or 2?
1. java -jar runme.jar [server]
2. java -jar runme.jar server

I think it should be 1, is it?
 
Christophe Grosjean
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well, in fact it is 2.
The '[]' indicates the mode is facultative.
Christophe
 
Gravity is a harsh mistress. But this tiny ad is pretty easy to deal with:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!