Skip to content

document in the wiki the way to show help for no flags/arguments present #29

Description

@GoogleCodeExporter
it would be nice to include to wiki the way to print the help for example for 
the no flags/arguments present.

The way it worked for me on the sample program documented here: 
http://stackoverflow.com/questions/17521380/bash-showing-usage-help-on-no-argume
nts-with-shflags/17521842#17521842

was:
...
# parse the command-line
FLAGS "$@" || exit $?
if [ $# == 0 ] ; then
    flags_help
    exit 1;
fi
eval set -- "${FLAGS_ARGV}"
...

Original issue reported on code.google.com by butko...@gmail.com on 8 Jul 2013 at 9:30

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions