• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NX: Question about case sensitive

 
HaoZhe Xu
Ranch Hand
Posts: 222
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
in my project, the user is able to use the command line argument like "alone","server" or just left it, so I need to distinguish the argument that the user gave, but should I assume it is case sensitive so that only small letters make sense? In the instruction it does not tell anything about it, but it is all small letters in the instruction, what should I do?
Thank you.
 
Seid Myadiyev
Ranch Hand
Posts: 196
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have the same question. Will the following code be valid:

Thanks,
Seid
 
Nicholas Cheung
Ranch Hand
Posts: 4982
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As stated from the instructions, the only commands are:
1. java -jar runme.jar
2. java -jar runme.jar alone
3. java -jar runme.jar server
so, I dont think we need to cater for the case sensitivity.
But, there is no harm for implementing it, however, remember to document it.
Nick.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic