Class ArgumentTree

java.lang.Object
org.tasktide.parser.ArgumentTree

public class ArgumentTree extends Object
Implementation of GenericTree for ArgumentMap
  • Constructor Details

    • ArgumentTree

      public ArgumentTree(String delim)
      Construct with delimiter for tree
      Parameters:
      delim -
  • Method Details

    • getTree

      public GenericTree<ArgumentMap> getTree()
      Return tree to expose those methods
      Returns:
      GenericTree of ArgumentMap
    • getGlobalArguments

      public ArgumentMap getGlobalArguments()
      Get global arguments
      Returns:
      ArgumentMap
    • getActionArguments

      public ArgumentMap getActionArguments(String actionPath)
      Fetch action arguments under the provided action path
      Parameters:
      actionPath -
      Returns:
      ArgumentMap
    • resolveActionPath

      public List<String> resolveActionPath(String[] args)
      Resolve deepest command path
      Parameters:
      args -
      Returns:
      List-String/Command
    • getVerboseHelp

      public List<String> getVerboseHelp()
      Display verbose help message global, and all action action arguments
      Returns:
      List-String
    • getGlobalHelp

      public List<String> getGlobalHelp()
      Fetch the help lines for the global arguments
      Returns:
    • getActionHelp

      public List<String> getActionHelp(String path)
      Get the help page for specific action
      Parameters:
      path -
      Returns:
      List-String
    • getActionHelp

      public List<String> getActionHelp()