shflags icon indicating copy to clipboard operation
shflags copied to clipboard

shFlags is a port of the Google gflags library for Unix shell.

Results 18 shflags issues
Sort by recently updated
recently updated
newest added

Introduces a check to only execute `break` from evaluation loop if `flags_help` returns true. That way, `flags_help` can be overridden to return false if one wants usage of the `--help`...

Hi, I'm trying to use shflags to write a script with several different subcommands, such as (for example) git has: `git pull`, `git push`, `git merge`, etc. As such, I'd...

Strings in both options and arguments that contain single or double quotes were not being parsed and returned correctly. Added test script for both situations.

Changed how the shell `eval` handles a string option value so that single and double quotes do not fail. Added a new files with tests for single, double, and mixed...

Test program here: ``` FLAGS "$@" || exit $? eval set -- "${FLAGS_ARGV}" if [ ${FLAGS_foo} -eq ${FLAGS_TRUE} ]; then echo "true" else echo "false" fi ``` With: ``` DEFINE_boolean...

bug
p1

running the hello_world.sh example from the [1.2 doc](https://github.com/kward/shflags/wiki/Documentation12x) with an invalid option throws the error and exits .. it would be better to show the help in addition? ```console #...

``` There isn't currently any way to mark a flag as required for operation of the program. It would be nice to have a uniform way for a flag to...

enhancement
auto-migrated
p2

``` $ ./hello_world.sh --help flags:WARN getopt: illegal option -- - getopt: illegal option -- e getopt: illegal option -- l getopt: illegal option -- p -h -- flags:FATAL unable to...

bug
auto-migrated
p2

If it does, it might help solve the long-flag issues on macOS.

enhancement
p3

``` Sometimes it's useful to have a boolean flag that doesn't have a negate option. For example: DEFINE_boolean 'force' false 'force overwriting' 'f' It's not needed to have a --noforce...

bug
auto-migrated
p2