Skip to content

Commit

Permalink
Porting #5150 --info option
Browse files Browse the repository at this point in the history
The Import Package cli script displays the wrong 'info' parameter
  • Loading branch information
TheWitness committed Jan 19, 2023
1 parent 2f346b6 commit c0181bf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions cli/import_package.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
$preview_only = true;

break;
case '--info-only':
case '--info':
$info_only = true;

break;
Expand Down Expand Up @@ -192,12 +192,12 @@ function display_version() {
function display_help() {
display_version();

print PHP_EOL . 'usage: import_package.php --filename=[filename] [--only-info] [--remove-orphans] [--replace-svalues] [--with-profile] [--profile-id=N' . PHP_EOL . PHP_EOL;
print PHP_EOL . 'usage: import_package.php --filename=[filename] [--info] [--remove-orphans] [--replace-svalues] [--with-profile] [--profile-id=N' . PHP_EOL . PHP_EOL;
print 'A utility to allow signed Cacti Packages to be imported from the command line.' . PHP_EOL . PHP_EOL;
print 'Required:' . PHP_EOL;
print ' --filename The name of the gzipped package file to import' . PHP_EOL . PHP_EOL;
print 'Optional:' . PHP_EOL;
print ' --only-info Output the info section of the package, do not import' . PHP_EOL;
print ' --info Output the info section of the package, do not import' . PHP_EOL;
print ' --preview Preview the Template Import, do not import' . PHP_EOL;
print ' --with-profile Use the default system Data Source Profile' . PHP_EOL;
print ' --profile-id=N Use the specific profile id when importing' . PHP_EOL;
Expand Down

0 comments on commit c0181bf

Please sign in to comment.