Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-3390

Karaf client should allow passing arguments to command

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.2.11
    • Fix Version/s: 4.0.4
    • Component/s: karaf
    • Labels:
      None
    • Environment:

      ServiceMix 4.5.3

      Description

      Karaf client should allow to send command arguments, for instance

      servicemix/bin/client -u smx -p smx start --force 1
      

      The "--force" argument is interpreted locally by Karaf client and blocked because it is unknown to it :

      Unknown option: --force
      Run with --help for usage
      

      Here is a patch to Karaf client which adds support for the "end of options marker" double-dash (as in the "getopt" component). It becomes now possible to run the following command :

      servicemix/bin/client -u smx -p smx -- start --force 1
      

        Attachments

          Activity

            People

            • Assignee:
              jbonofre Jean-Baptiste Onofré
              Reporter:
              metatech metatech
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified