1. Toby Inkster
  2. p5-ask

Commits

Toby Inkster  committed 1c7b16c

clarify single_choice/multiple_choice usage

  • Participants
  • Parent commits fe05551
  • Branches default

Comments (0)

Files changed (1)

File lib/Ask.pm

View file
  • Ignore whitespace
       ],
    );
 
+The choices are C<< identifier => label >> pairs. The identifiers are not
+necessarily displayed to the user making the choice; the labels are. The
+function returns the identifier for the chosen option.
+
 The C<default> argument can be used to supply a default return value if the
 user cannot be asked for some reason (e.g. running on an unattended terminal).
 
       ],
    );
 
+Returns list of identifiers.
+
 The C<default> argument can be used to supply a default return value if the
 user cannot be asked for some reason (e.g. running on an unattended terminal).
 It must be an arrayref.