ALib C++ Framework
by
Library Version: 2605 R0
Documentation generated by doxygen
Loading...
Searching...
No Matches
sample.alibrc
1/// \file
2// #################################################################################################
3// ALib C++ Framework
4// App Sample Resources
5//
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 --------------------
11HlpCLIAppName sample
12HlpUsage "sample [format=\"FORMATSPEC\" [now]|[file FILENAME]"
13AppInfo |
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
17 @HL-
18
19HlpGeneral >
20 \nABOUT sample\n
21 @>>
22 This is a sample application provided with C++ library 'ALib' to demonstrate the use of its
23 module \"ALib App\"."
24 \n@<<
25
26//-------------------- CLI Commands/Options/Parameters/ExitCodes --------------------
27DateC< datesample::Commands::
28 // enum ident minread Params
29DateC ~|
30 1, now ,1 , , \
31 2, file ,1 ,filename
32
33
34THlpCmdSht_now "Reports the actual date/time"
35THlpCmdLng_now
36 Reports the actual date/time. May be omitted, as this is the default if no command is given.
37
38THlpCmdSht_file Returns the date/time of a file.
39THlpCmdLng_file Returns the last modification date/time of a file.
40
41DateO< datesample::Options::
42//enum ident minread identChar in-arg-separ. args to consume ShortcutTo
43DateO ~|
44 0, format ,1, f, = ,1 ,
45
46TOptUsg_format --format[=]\"placeholders\"
47TOptHlp_format >
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
51
52
53
54DateP< datesample::Parameters::
55//enum name minIdentLen identifier in-arg-sep delim args to consume isOptional
56// (if empty -> mandatory!)
57DateP ~|
58 0, FILENAME ,1, , = , ,-1 ,0
59
60THlpParSht_FILENAME Mandatory parameter of command \"file\".
61THlpParLng_FILENAME=>
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 '='"
65
66
67DateE< datesample::
68//enum name assoc. cli exception
69DateE ~|
70 101,ErrMissingFilename ,-1,
71 102,ErrFileNotFound ,-1,
72 103,ErrPermissionDenied ,-1
73
74TExit101 Command 'file' given without a filename argument.
75TExit102 File not found.
76TExit103 Permission denied.
77
78// custom resources
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'.
82
83// DOX_MARKER([DOX_ALIB_SAMPLE_ALIBRC])