2// #################################################################################################
6// Copyright 2025 A-Worx GmbH, Germany
7// Published under Boost Software License (a free software license, see LICENSE.txt)
8// #################################################################################################
9// DOX_MARKER([DOX_ALIB_SAMPLE_ALIBRC])
10//-------------------- Help Texts --------------------
12HlpUsage "sample [format=\"FORMATSPEC\" [now]|[file FILENAME]"
14 @HL-ALib App Sample V. {}.{}
15 (c) 2025-{} AWorx GmbH. Published under MIT License (Open Source).
16 For more information, see: https://alib.dev/alib_mod_app.html
22 This is a sample application provided with C++ library 'ALib' to demonstrate the use of its
26//-------------------- CLI Commands/Options/Parameters/ExitCodes --------------------
27DateC< datesample::Commands::
28 // enum ident minread Params
34THlpCmdSht_now "Reports the actual date/time"
36 Reports the actual date/time. May be omitted, as this is the default if no command is given.
38THlpCmdSht_file Returns the date/time of a file.
39THlpCmdLng_file Returns the last modification date/time of a file.
41DateO< datesample::Options::
42//enum ident minread identChar in-arg-separ. args to consume ShortcutTo
44 0, format ,1, f, = ,1 ,
46TOptUsg_format --format[=]\"placeholders\"
48 Sets the output format. The format specification is given with the documentation of the
49 ALib method CalendarDateTime::Format, found here:\n
50 https://alib.dev/classalib_1_1strings_1_1util_1_1CalendarDateTime.html
54DateP< datesample::Parameters::
55//enum name minIdentLen identifier in-arg-sep delim args to consume isOptional
56// (if empty -> mandatory!)
58 0, FILENAME ,1, , = , ,-1 ,0
60THlpParSht_FILENAME Mandatory parameter of command \"file\".
62 Denotes the file that is used for retrieving the modification date.
63 This parameter is mandatory to be given with command 'file' and has to be appended to this
64 command, separated by '='"
68//enum name assoc. cli exception
70 101,ErrMissingFilename ,-1,
71 102,ErrFileNotFound ,-1,
72 103,ErrPermissionDenied ,-1
74TExit101 Command 'file' given without a filename argument.
75TExit102 File not found.
76TExit103 Permission denied.
79FNOTFND The file {!Q} specified with command 'file' was not found.
80FNOACC Access denied to file {!Q} specified with command 'file'.
81MSNGFNAME Error: no filename given with command 'file'.
83// DOX_MARKER([DOX_ALIB_SAMPLE_ALIBRC])