Skip to content

Commit 345da26

Browse files
committed
Deprecate underscored options
Do not use dry_run, extract_to and extract_from but rather dry-run, extract-to and extract-from.
1 parent d35fefc commit 345da26

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

caso/extract/manager.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,15 @@
5454
]
5555

5656
cli_opts = [
57-
cfg.StrOpt('extract_to',
57+
cfg.StrOpt('extract-to',
58+
deprecated_name='extract_to',
5859
help='Extract record changes until this date. '
5960
'If it is not set, we use now. If a server has '
6061
'ended after this date, it will be included, but '
6162
'the consuption reported will end on this date. '
6263
'If no time zone is specified, UTC will be used.'),
63-
cfg.StrOpt('extract_from',
64+
cfg.StrOpt('extract-from',
65+
deprecated_name='extract_from',
6466
help='Extract records that have changed after this date. This '
6567
'means that if a record has started before this date, and '
6668
'it has changed after this date (i.e. it is still running '

caso/manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,8 @@
3838
]
3939

4040
cli_opts = [
41-
cfg.BoolOpt('dry_run',
41+
cfg.BoolOpt('dry-run',
42+
deprecated_name='dry_run',
4243
default=False,
4344
help='Extract records but do not push records to SSM. This '
4445
'will not update the last run date.'),

doc/source/usage.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ command line
2424
your OpenStack deployment.
2525
``caso-extract -h`` will show a complete list of available arguments.
2626

27-
Use the ``--extract_from`` argument to specify the date from when the records
27+
Use the ``--extract-from`` argument to specify the date from when the records
2828
should be extracted. If no value is set, then ``cASO`` will extract the records
2929
from the last run. If equal to "None", then extract records from the beggining
3030
of time. If not time zone is specified, UTC will be used.

0 commit comments

Comments
 (0)