added: cmdline args handling
This commit is contained in:
@ -16,17 +16,20 @@
|
||||
-i : Enable inventory
|
||||
-t : Enable throw
|
||||
-R : Enable revisiting levels
|
||||
-S [seed] : Sets initial seed to seed
|
||||
-s [file] : Enable saves
|
||||
-s [seed] : Sets initial seed to seed
|
||||
-L [file] : Enable logging to file
|
||||
-I [file] : Reads commands from file. CANNOT BE USED WITH -n.
|
||||
-O [file] : Outputs to file. CANNOT BE USED WITH -n.
|
||||
-h/--help : Displays options list (doesn't start a game)
|
||||
*/
|
||||
|
||||
// IMPORTANT: Errors include the index that caused them (or'ed into them)
|
||||
feature proc_args(int argc, char **argv,
|
||||
std::unique_ptr<cursor> &curse,
|
||||
std::unique_ptr<input> &in,
|
||||
std::unique_ptr<display> &out,
|
||||
std::unique_ptr<logger> &log);
|
||||
|
||||
void panic_args(feature panic);
|
||||
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user