dylanaraps / pywal

🎨 Generate and change color-schemes on the fly.
MIT License
8.32k stars 323 forks source link

Multiflag support does not follow UNIX standard #303

Closed tzcrawford closed 5 years ago

tzcrawford commented 5 years ago

It appears that pywal takes some flags as priority over others. For instance,wal -f -h 3024 only outputs the help to the terminal and does not set the theme to 3024. Likewise, you cannot specify that you are done entering option flags w/ -- e.g. wal -f -- "$(rofi -dmenu < FileListingAllThemes)" although, wal -f "$(rofi -dmenu < FileListingAllThemes)" does work. See http://wiki.bash-hackers.org/dict/terms/end_of_options

lasers commented 5 years ago

-f, -h is optional arguments. There are no priorities and -h does what it says... which is to show this help message and exit. Otherwise, we can have wal running wal -f 3024 to change everything then print_help() literally right at end of wal... which would be stupid imho.

I don't understand why we need to specify that we're done with specifying optional arguments because there are no positional arguments in wal --help.

Maybe you can tell us more about the specific issue you had with wal.