Martin A. Brown
8f34526e4f
Merge pull request #11 from martin-a-brown/master
...
catch up to 0.7.14 (from May 2016) in tLDP repo: add --version flag
2022-10-23 20:39:08 -07:00
Martin A. Brown
fafc30ac0e
argparse drops private method _ensure_value
...
The `argparse` library refactored to improvem performance of common use
cases. Handling a list is not a common scenario and the function
_ensure_values (which was obviously private) disappeared.
This commit simply uses the same strategy that the upstream `argparse`
maintainers used. Since this is a subclass of a private object type
anyway, this is expected sort of behaviour.
2022-10-23 18:46:01 +00:00
Martin A. Brown
e879f2e638
adding --version to CLI config
2016-05-16 09:29:53 -07:00
Martin A. Brown
8a554a430d
adding 2016 LDP copyright to each file
2016-04-29 11:02:02 -04:00
Martin A. Brown
f5af96d1bf
make pep8 a bit happier
2016-04-01 21:33:23 -07:00
Martin A. Brown
f5cb7c9e8b
support better handling of verbose CLI/config
...
now ldptool understands --verbose, --verbose yes, --verbose false
2016-03-28 14:06:46 -07:00
Martin A. Brown
8cbdeab558
provide directory existence feedback to user
...
instead of bailing with an obnoxious error message, or silently ignoring a
command-line option of a directory, squawk to STDERR with the problem and
provide (possibly redundant, but maybe informative) traceback
2016-03-28 11:11:22 -07:00
Martin A. Brown
3f92a7a95c
everybody gets unicode_literals
2016-03-14 22:18:09 -07:00
Martin A. Brown
f7505627a5
pep8/pyflakes fixes
2016-03-10 11:17:09 -08:00
Martin A. Brown
7bd32896eb
create variable DEFAULT_CONFIGFILE
...
so that at runtime (during testing), it can be overridden
2016-03-10 08:50:31 -08:00
Martin A. Brown
76fd27d1fa
pep8/pyflakes fixes
2016-03-07 12:10:49 -08:00
Martin A. Brown
7308f331ff
parameterize the --resources to copy at build time
2016-03-07 09:39:34 -08:00
Martin A. Brown
59bcafb874
add --publish option
...
in preparation for separating --publish and --build, add the option
2016-03-07 09:03:57 -08:00
Martin A. Brown
88ee1bf5fa
support new option --builddir
2016-03-07 08:06:17 -08:00
Martin A. Brown
e6b6ea7b40
add support for --doctypes and --statustypes
...
provide CLI-discoverable listing of supported source document types and status
types
2016-03-06 11:29:13 -08:00
Martin A. Brown
4ec06998b4
correct the labeling in the --help output
2016-03-01 13:21:11 -08:00
Martin A. Brown
fe54af73a5
add default (system) configuration file
2016-03-01 09:04:45 -08:00
Martin A. Brown
363bba8a37
pep8/pyflakes
2016-02-29 20:32:36 -08:00
Martin A. Brown
17a60e367a
make the action --options a mutually exclusive group
2016-02-29 17:56:41 -08:00
Martin A. Brown
98dd5ecdf8
no config validation yet
...
(and, I should not have used such terms inline in code)
2016-02-27 11:29:05 -08:00
Martin A. Brown
2d052e443e
--skip option needs to have an empty list default
2016-02-26 00:30:05 -08:00
Martin A. Brown
595e610213
adding --skip feature
2016-02-25 12:28:41 -08:00
Martin A. Brown
b86f92f742
inspect/call the argparse method for each doctype
2016-02-25 10:38:38 -08:00
Martin A. Brown
92a9042a74
add automatic detection of config_fragments
2016-02-25 09:58:11 -08:00
Martin A. Brown
cf8c314981
--pubdir type checker should be an arg_isdirectory
2016-02-23 13:13:52 -08:00
Martin A. Brown
b4895a2e0b
use arg_ checking functions from utils.py
2016-02-23 11:04:43 -08:00
Martin A. Brown
04c10a6af9
refer to %(default)s; shorter lines
2016-02-23 08:59:37 -08:00
Martin A. Brown
abb471c912
refer to status_classes and pep8 fix
2016-02-23 08:44:05 -08:00
Martin A. Brown
c821eadac1
improve command-line utility; work out the kinks (before testing)
2016-02-22 21:21:24 -08:00
Martin A. Brown
f6eedfcb7b
flesh out CLI options and add --loglevel option
2016-02-22 17:10:45 -08:00
Martin A. Brown
82f5b63006
make CascadingConfig behave more like ArgumentParser
2016-02-22 16:19:05 -08:00
Martin A. Brown
4e07f2a52f
absolute imports (and move isdirectory to utils)
2016-02-22 13:04:16 -08:00
Martin A. Brown
bfd07eb4d5
remove superlong opts, make --help output prettier
2016-02-22 12:55:35 -08:00
Martin A. Brown
8b7c4a574c
adding the main config module for the application
2016-02-22 12:34:26 -08:00