mirror of
https://github.com/tio/tio.git
synced 2026-05-01 23:07:58 +02:00
Remove command-line option inconsistencies
Optional arguments, as parsed by the getopt_long mechanism, are inherently inconsistent with how you define required arguments. To avoid confusion we decide to avoid this inconsistency by replacing optional options with additional options with required argmuments.
This commit is contained in:
parent
8d2ad8d82d
commit
9476422922
6 changed files with 103 additions and 59 deletions
|
|
@ -33,6 +33,7 @@ enum timestamp_t
|
|||
TIMESTAMP_24HOUR_START,
|
||||
TIMESTAMP_ISO8601,
|
||||
};
|
||||
|
||||
const char* timestamp_token(enum timestamp_t timestamp);
|
||||
enum timestamp_t timestamp_option_parse(const char *arg);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue