Skip to content

Commit

Permalink
Fixing #5150 - Wrong help on import_package.php
Browse files Browse the repository at this point in the history
he Import Package cli script displays the wrong 'info' parameter
  • Loading branch information
TheWitness committed Jan 16, 2023
1 parent d5c76c6 commit 413b44b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ Cacti CHANGELOG
-issue#5143: When a Device has zero Graphs or Data Sources, it does not display the correct value
-issue#5145: Changing SNMP settings to None leaves Bulk Walk Maximum Repititions visible
-issue#5147: Error 500 on apache when changing languages
-issue#5150: The Import Package cli script displays the wrong 'info' parameter
-issue#5155: Local Linux Machine Device Package Damaged
-issue#5159: Cannot turn on publishing when editing
-issue#5160: Translations on debian 'Bullseye' systems may cause server errors
Expand Down
6 changes: 3 additions & 3 deletions cli/import_package.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
$preview_only = true;

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

break;
Expand Down Expand Up @@ -179,12 +179,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 413b44b

Please sign in to comment.