derrickchoi / s3fs

Automatically exported from code.google.com/p/s3fs
GNU General Public License v2.0
0 stars 0 forks source link

Use getopt for flag parsing #112

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
We do some ad-hoc parsing of flags at the moment that clearly isn't going to 
scale well in the future. This issue is to track work on moving that section of 
code to use getopts or some comparable library.

This will also help with generating a proper --help, and man page.

Original issue reported on code.google.com by apetresc on 2 Nov 2010 at 4:20

GoogleCodeExporter commented 8 years ago
I looked at this a little bit, it appears that using getopt_long is the way to 
go. It's also suggested to use this by the GNU Coding Standards
http://www.gnu.org/prep/standards/standards.html

Original comment by dmoore4...@gmail.com on 2 Nov 2010 at 1:55

GoogleCodeExporter commented 8 years ago
fuse uses its own option parsing framework (fuse_opt_parse), so, not sure if 
you'll be able to use getopt?

Original comment by rri...@gmail.com on 2 Nov 2010 at 2:36

GoogleCodeExporter commented 8 years ago

Original comment by dmoore4...@gmail.com on 7 Nov 2010 at 12:29

GoogleCodeExporter commented 8 years ago
fixed in r227

uses getopt_long now and still allows for FUSE's parser to work as well.

Original comment by dmoore4...@gmail.com on 7 Nov 2010 at 1:48