gnushogi-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnushogi-devel] [Patch 0/1] Switch to getopt cmdline parsing


From: Justin Vreeland
Subject: [Gnushogi-devel] [Patch 0/1] Switch to getopt cmdline parsing
Date: Sun, 4 Feb 2018 14:25:16 -0700

I started using gnushogi to play shogi and noticed some slight issues, but
looking at the commit history doesn't seem to be activly developed.  It only
seemed polite to send a patch when inquiring about the development status so
here's a first pass at switching to getopt for argument parsing found in
the todo.

The main difference I've noticed is that this patch produces and error & usage
when '--' options are used where the current method seems to ignore invalid
options and just produce the usage text.

This hasn't been fully tested, just wanted to gauge the reaction before
I spent time testing and cleaning it up.

Justin Vreeland (1):
  Switch the argument parsing to getopt

 gnushogi/main.c | 130 +++++++++++++++++++++-----------------------------------
 1 file changed, 49 insertions(+), 81 deletions(-)

-- 
2.16.1




reply via email to

[Prev in Thread] Current Thread [Next in Thread]