SUSE / ses-upgrade-helper

GNU General Public License v2.0
2 stars 2 forks source link

Use getopt to handle short and long option names #34

Open smithfarm opened 8 years ago

smithfarm commented 8 years ago

Inspiration: https://github.com/ceph/ceph/blob/master/src/ceph-osd-prestart.sh#L3-L11

smithfarm commented 8 years ago

More inspiration: https://github.com/ceph/ceph/blob/master/src/init-ceph.in#L134-L227

smithfarm commented 8 years ago

Also add a usage() function at the same time.

ghost commented 8 years ago

Yea, now that we're getting more options that actually take arguments, getopt is a good call. :+1: