Commits at 8f2024a8e4ca25cecc246848b31099645a76bf11
8f2024a8Update man pages to the new CLI
Previous CLI don't fit well to man page format, especially due to its
hyphen-less semi-positional sometimes-ignored options.
Shota FUJI
authored at
Shota FUJI
comitted at
024f9127Fix prints "unknown argument" for incorrect arguments
Errors other than UnknownArg, such as MissingValue logs eariler.
UnknownArg is also used as a "skip" signal and there were no other error
in an error set, that's why the log was here. I simply forgot to remove
that when I added other error values.
Shota FUJI
authored at
Shota FUJI
comitted at
64f0da64Event type arguments for list command
I initially thought these args affects every command. Turned out, only
"list" and "wait" commands use those args. That's why I set those as
command options rather than global options. This time, I choose
correctness and user-friendliness over backwards-compatibility.
Shota FUJI
authored at
Shota FUJI
comitted at
1927160cFix incorrect sunrise/sunset calculation on non-UTC timezone
Shota FUJI
authored at
Shota FUJI
comitted at
304fec8bFix invalid CLI argument does not abort parsing
Invalid argument, such as "d foo" should abort and prints usage error.
Shota FUJI
authored at
Shota FUJI
comitted at
4a52d259Run "print_list" on "list" command
It does not work correctly because the default value of `target_time`
being the same as `now` instead of "start of the day of `now`."
Anyway, the command prints something and exits with expected status.
That's okay for now.
Shota FUJI
authored at
Shota FUJI
comitted at
66781b3dFix lat/lon accepts negative number with suffix
Values like -1.2345N are illegal and confusing. As I've added
"--latitude" and "--longitude" options, there are no need for supporting
negative suffixed values.
Shota FUJI
authored at
Shota FUJI
comitted at
c5402dc6Add --latitude and --longitude options
This is obvious and less error-prone. I'm gonna keep non-flag variants
for compatibility.
Shota FUJI
authored at
Shota FUJI
comitted at
74ebda97Defer getting now/target time
CLI does not take argument for "now". Also "target" defaults to "now".
Shota FUJI
authored at
Shota FUJI
comitted at
8249d378UTC flag
Instead of "--utc" being an alias for "--gmt", I swapped those too.
Shota FUJI
authored at
Shota FUJI
comitted at
d3848966Debug flag
I did not added "verbose" alias because it's incorrect--the "debug" flag
shortens wait time and that's not "verbose" or not. Shortening wait time
is not appropriate for "--debug" too, but never it is verbosity.
The original version also has "-v" alias in flag handling code, but it
won't be handled because "version" flag has "-v" alias and it captures
the arg eariler.
Shota FUJI
authored at
Shota FUJI
comitted at
0f68071eSkip tests for features not implemented yet
Errors are so noisy.
Shota FUJI
authored at
Shota FUJI
comitted at
c6acef26Add behavior matching tests to build system
This allows me to develop new CLI main in a more TDD-ish way.
Shota FUJI
authored at
Shota FUJI
comitted at
8ffc19d7Add Zig main
The most painful point of this software is it's CLI design. Unstructured
flags and surprising behaviors. The biggest reason I forked is to
rewrite the CLI frontend.
Shota FUJI
authored at
Shota FUJI
comitted at