Skip to content

Commit

Permalink
Revert "chore: Deprecate old commands in help output (canonical#5595)"
Browse files Browse the repository at this point in the history
This reverts commit bd6cd1f.
  • Loading branch information
blackboxsw committed Oct 2, 2024
1 parent 7cfbf6d commit e3c8935
Showing 1 changed file with 5 additions and 16 deletions.
21 changes: 5 additions & 16 deletions cloudinit/cmd/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -938,17 +938,14 @@ def main(sysv_args=None):
"--debug",
"-d",
action="store_true",
help=(
"DEPRECATED: Show additional pre-action "
"logging (default: %(default)s)."
),
help="Show additional pre-action logging (default: %(default)s).",
default=False,
)
parser.add_argument(
"--force",
action="store_true",
help=(
"DEPRECATED: Force running even if no datasource is"
"Force running even if no datasource is"
" found (use at your own risk)."
),
dest="force",
Expand All @@ -971,10 +968,7 @@ def main(sysv_args=None):

# Each action and its sub-options (if any)
parser_init = subparsers.add_parser(
"init",
help=(
"DEPRECATED: Initialize cloud-init and perform initial modules."
),
"init", help="Initialize cloud-init and perform initial modules."
)
parser_init.add_argument(
"--local",
Expand All @@ -997,8 +991,7 @@ def main(sysv_args=None):

# These settings are used for the 'config' and 'final' stages
parser_mod = subparsers.add_parser(
"modules",
help=("DEPRECATED: Activate modules using a given configuration key."),
"modules", help="Activate modules using a given configuration key."
)
extra_help = lifecycle.deprecate(
deprecated="`init`",
Expand Down Expand Up @@ -1029,11 +1022,7 @@ def main(sysv_args=None):

# This subcommand allows you to run a single module
parser_single = subparsers.add_parser(
"single",
help=(
"Manually run a single module. Useful for "
"testing during development."
),
"single", help="Run a single module."
)
parser_single.add_argument(
"--name",
Expand Down

0 comments on commit e3c8935

Please sign in to comment.