Talk:Parse command-line arguments: Difference between revisions

Line 36:
 
The task description should probably specify what is to be accomplished here. --[[User:Rdm|Rdm]] 00:32, 9 August 2011 (UTC)
 
==Possible task==
Write a program:
# That if it sees an option called <math>b</math> will set an internal variable to Boolean true; otherwise the internal variable is false.
# Accepts an option called <math>s</math> followed by a string then sets an internal variable to the value of the string.
# Accepts an option called <math>n</math> followed by a number (integer or float) then sets an internal variable to the value of the string.
The order of the three options mentioned can vary and and option indicators such as any preceeding '-', '--', or ':' characters are allowed and should follow the conventions of an OS.
 
Comments please. --[[User:Paddy3118|Paddy3118]] 06:59, 13 September 2011 (UTC)
Anonymous user