/* * Copyright (c) 2014-present, Facebook, Inc. * All rights reserved. * * This source code is licensed under the BSD-style license found in the * LICENSE file in the root directory of this source tree. An additional grant * of patent rights can be found in the PATENTS file in the same directory. */ package com.facebook.stetho.dumpapp; import org.apache.commons.cli.Option; import org.apache.commons.cli.Options; public class GlobalOptions { public final Option optionHelp = new Option("h", "help", false, "Print this help"); public final Option optionListPlugins = new Option("l", "list", false, "List available plugins"); /** * Special option used to inject it into help but is otherwise not processed within the app. * Instead, the dumpapp shell script interprets this and figures out which port to send the * request to. */ public final Option optionProcess = new Option("p", "process", true, "Specify target process"); public final Options options; public GlobalOptions() { options = new Options(); options.addOption(optionHelp); options.addOption(optionListPlugins); options.addOption(optionProcess); } }